libsvm Questions

3

Solved

I am using libSVM. Say my feature values are in the following format: instance1 : f11, f12, f13, f14 instance2 : f21, f22, f23, f24 instance3 : f31, f32, f33, f34 instance4 : f41, f42, f43, f...
Saxton asked 15/3, 2013 at 15:36

2

Solved

I am dealing with highly imbalanced data set and my idea is to obtain values of feature weights from my libSVM model. As for now I am OK with the linear kernel, where I can obtain feature weights, ...
Lyndialyndon asked 21/1, 2014 at 14:19

1

According to this post, SVC and LinearSVC in scikit learn are very different. But when reading the official scikit learn documentation, it is not that clear. Especially for the loss functions, it s...
Postconsonantal asked 8/10, 2020 at 7:39

2

Solved

While libsvm provides tools for scaling data, with Scikit-Learn (which should be based upon libSVM for the SVC classifier) I find no way to scale my data. Basically I want to use 4 features, of w...
Jeanicejeanie asked 10/11, 2012 at 17:3

2

Solved

From the documentation scikit-learn implements SVC, NuSVC and LinearSVC which are classes capable of performing multi-class classification on a dataset. By the other hand I also read about that sci...
Nelia asked 12/1, 2015 at 23:59

8

In every book and example always they show only binary classification (two classes) and new vector can belong to any one class. Here the problem is I have 4 classes(c1, c2, c3, c4). I've training ...
Anabal asked 24/12, 2009 at 13:1

7

How do I read/write libsvm data into/from R? The libsvm format is sparse data like <class/target>[ <attribute number>:<attribute value>]* (cf. Compressed Row Storage (CRS)) e....
Microscopic asked 24/8, 2012 at 15:41

4

Solved

I have an annoying problem when using machine learning library PyML. PyML uses libsvm to train the SVM classifier. The problem is that libsvm outputs some text to standard output. But because that ...
Berget asked 14/11, 2010 at 17:14

3

Solved

I want to make libsvm format, so I made dataframe to the desired format, but I do not know how to convert to libsvm format. The format is as shown in the figure. I hope that the desired libsvm type...

1

Solved

I compiled a libsvm benchmarking app which does svm_predict() 100 times on the same image using the same model. The libsvm is compiled statically (MSVC 2017) by directly including svm.cpp and svm.h...
Disjoined asked 14/2, 2019 at 11:59

3

Solved

I wrote this code and wanted to obtain probabilities of classification. from sklearn import svm X = [[0, 0], [10, 10],[20,30],[30,30],[40, 30], [80,60], [80,50]] y = [0, 1, 2, 3, 4, 5, 6] clf = sv...
Trici asked 27/3, 2018 at 7:42

5

Solved

I am using LibSVM to classify some documents. The documents seem to be a bit difficult to classify as the final results show. However, I have noticed something while training my models. and t...
Beaver asked 28/2, 2012 at 10:57

2

Solved

I want to perform multi-class classification using the svm function of e1071 package. But from what I came to know from the documentation of svm, it can only perform binary classification. The vign...
Isoprene asked 25/2, 2014 at 9:30

2

Solved

I currently use the MATLAB version of the LIBSVM support vector machine to classify my data. The LIBSVM documentation mentions that scaling before applying SVM is very important and we have to use ...
Terzetto asked 7/4, 2012 at 14:44

8

Solved

I am in dire need of a classification task example using LibSVM in python. I don't know how the Input should look like and which function is responsible for training and which one for testing Thank...
Tourism asked 18/11, 2010 at 12:44

2

I want to convert a csv file into sparse format file with csv2libsvm.py (https://github.com/zygmuntz/phraug/blob/master/csv2libsvm.py). The CSV file contains 37 attributes + the label (last column...
Corney asked 13/3, 2017 at 15:20

1

Solved

I am new for learning Spark MLlib. When I was reading about the example of Binomial logistic regression, I don't understand the format type of "libsvm". (Binomial logistic regression) The text loo...

4

Solved

I'm having a three class problem with unbalanced data (90%, 5%, 5%). Now I want to train a classifier using LIBSVM. The problem is that LIBSVM optimizes its parameter gamma and Cost for optimal ac...
Mythify asked 10/7, 2012 at 9:10

7

Solved

I built libsvm on Mac OS X with Make. $ tar xzfv libsvm-3.17.tar.gz $ cd libsvm-3.17 $ make This built the various libsvm binaries: $ ls COPYRIGHT heart_scale svm-predict.c svm-train.c tools FA...
Bumgardner asked 2/4, 2013 at 2:34

1

Solved

I have a LIBSVM scaling model (generated with svm-scale) that I would like to port over to PySpark. I've naively tried the following: scaler_path = "path to model" a = MinMaxScaler().load(scaler_p...
Leopardi asked 29/11, 2016 at 18:7

1

Solved

I want to study how to perform LIBSVM for regression and I'm currently stuck in preparing my data. Currently I have this form of data in .csv and .xlsx format and I want to convert it into libsvm d...
Jaredjarek asked 5/11, 2016 at 9:33

2

I am doing a project using libsvm and I am preparing my data to use the lib. How can I convert CSV file to LIBSVM compatible data? CSV File: https://github.com/scikit-learn/scikit-learn/blob/m...
Euchologion asked 19/4, 2014 at 12:37

2

Solved

How to get started with libsvm under MATLAB? I've downloaded the library, and extracted it in C:\Program Files\MATLAB\R2012a\toolbox\, but then I don't know how to use it in MATLAB.
Officialese asked 21/3, 2013 at 20:55

1

Here is my sample R code: train <- read.csv("Train.csv") test <- read.csv("Test+.csv") x <- model.matrix(age ~ . - 1,data=train) classify=svm(as.factor(age)~ ., data=train,method="...
Aurilia asked 28/3, 2016 at 19:52

2

Solved

One option of the SVM classifier (SVC) is probability which is false by default. The documentation does not say what it does. Looking at libsvm source code, it seems to do some sort of cross-valida...
Cannery asked 5/1, 2016 at 20:55

© 2022 - 2024 — McMap. All rights reserved.