Questions tagged [libsvm]

LIBSVM is a library for Support Vector Machines

LIBSVM is an integrated software for support vector classification, (C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM). It supports multi-class classification. It comprises of both C++ and Java sources, and interfaces to several commonly used languages, such as Python, MATLAB, R, Ruby, Perl, PHP and Haskell.

1241 questions
18
votes
1 answer

libsvm Shrinking Heuristics

I'm using libsvm in C-SVC mode with a polynomial kernel of degree 2 and I'm required to train multiple SVMs. During training, I am getting either one or even both of these warnings for some of the SVMs that I train: WARNING: using -h 0 may be…
Mihai Todor
  • 8,014
  • 9
  • 49
  • 86
17
votes
7 answers

read/write data in libsvm format

How do I read/write libsvm data into/from R? The libsvm format is sparse data like [ :]* (cf. Compressed Row Storage (CRS)) e.g., 1 10:3.4 123:0.5 34567:0.231 0.2 22:1 456:03 I am sure I can whip…
sds
  • 58,617
  • 29
  • 161
  • 278
17
votes
1 answer

Matlab libsvm - how to find the w coefficients

How can find what the vector w is, i.e. the perpendicular to the separation plane?
Trup
  • 1,635
  • 13
  • 27
  • 40
16
votes
2 answers

Can an SVM learn incrementally?

I am using a multi-dimensional SVM classifier (SVM.NET, a wrapper for libSVM) to classify a set of features. Given an SVM model, is it possible to incorporate new training data without having to recalculate on all previous data? I guess another way…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
16
votes
2 answers

Training complexity of Linear SVM

Which is the actual computational complexity of the learning phase of SVM (let's say, that implemented in LibSVM)? Thank you
user1923631
  • 383
  • 2
  • 5
  • 15
16
votes
3 answers

svm scaling input values

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 …
user570593
  • 3,420
  • 12
  • 56
  • 91
15
votes
3 answers

libsvm java implementation

I am trying to use the java bindings for libsvm: http://www.csie.ntu.edu.tw/~cjlin/libsvm/ I have implemented a 'trivial' example which is easily linearly separable in y. The data is defined as: double[][] train = new double[1000][]; double[][]…
user1220022
  • 11,167
  • 19
  • 41
  • 57
14
votes
2 answers

Help--100% accuracy with LibSVM?

Nominally a good problem to have, but I'm pretty sure it is because something funny is going on... As context, I'm working on a problem in the facial expression/recognition space, so getting 100% accuracy seems incredibly implausible (not that it…
14
votes
2 answers

One-class classification with SVM in R

I'm using the package e1071 in R in order to build a one-class SVM model. I don't know how to do that and I neither find any example on the Internet. Could someone give an example code to characterize, for example, the class "setosa" in the "iris"…
dreamscollector
  • 175
  • 1
  • 1
  • 8
14
votes
1 answer

JNI ERROR (app bug): local reference table overflow (max=512)

I am trying to run the LibSVMAndroidClassification Android project with my own dataset. It works perfectly fine with the dataset already provided and it also works fine when I use my csv with 100 rows (which is less than 1% of original size). But…
Wahib Ul Haq
  • 4,185
  • 3
  • 44
  • 41
13
votes
2 answers

Scaling data in scikit-learn SVM

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 which 3 range from 0 to 1 and the last one is a "big"…
luke14free
  • 2,529
  • 1
  • 17
  • 25
13
votes
2 answers

How to tell if OpenMP is working?

I am trying to run LIBSVM in parallel mode, however my question is in OpenMP in general. According to LIBSVM FAQ, I have modified the code with #pragma calls to use OpenMP. I also modified the Makefile (for un*x) by adding a -fopenmp argument so it…
paul simmons
  • 5,568
  • 13
  • 51
  • 78
12
votes
5 answers

How to use LibSVM with Weka in my Java code?

I want to use LibSVM classifier with Weka in my application. How can I (or where can I find good examples to) do this?
ruwanego
  • 427
  • 2
  • 7
  • 18
12
votes
4 answers

Suppressing output of module calling outside library

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 is outside of Python I cannot intercept it. I tried…
Rok
  • 494
  • 6
  • 15
12
votes
1 answer

multiprocessing and ctypes with pointers

I have multiProcessing.Process objects whose target functions take input and output queue. To the output queue they put some data, that is a wrapped ctypes structure with internal pointers. Of course, the pickle module, that should serialize the…
Felix
  • 3,351
  • 6
  • 40
  • 68
1
2
3
82 83