Questions tagged [svmlight]

SVMLight is an implementation of a Support Vector Machine - supervised learning models with associated learning algorithms that analyze data and recognize patterns, used for classification and regression analysis.

The main features of the program are the the following:

  • fast optimization algorithm
    • working set selection based on steepest feasible descent
    • "shrinking" heuristic
    • caching of kernel evaluations
    • use of folding in the linear case
  • solves classification and regression problems. For multivariate and structured outputs use SVMstruct.
  • solves ranking problems (e. g. learning retrieval functions in STRIVER search engine).
  • computes XiAlpha-estimates of the error rate, the precision, and the recall
  • efficiently computes Leave-One-Out estimates of the error rate, the precision, and the recall
  • includes algorithm for approximately training large transductive SVMs (TSVMs) (see also Spectral Graph Transducer)
  • can train SVMs with cost models and example dependent costs
  • allows restarts from specified vector of dual variables
  • handles many thousands of support vectors
  • handles several hundred-thousands of training examples
  • supports standard kernel functions and lets you define your own
  • uses sparse vector representation
98 questions
1
vote
2 answers

Training set for svm light

I want to use svm light for classification. In example that was on its site, file format was: .=. : : ... : # .=. +1 | -1 | 0 | .=. |…
user3496654
  • 101
  • 1
  • 3
  • 12
1
vote
3 answers

Extracting a random line in a file without loading the file into RAM in python

I have big svmlight files that I'm using for machine learning purpose. I'm trying to see if a sumsampling of those files would lead to good enough results. I want to extract random lines of my files to feed them into my models but I want to load…
AdrienNK
  • 850
  • 8
  • 19
1
vote
2 answers

SVM-pref package from Cornell university

I'm using SVM-pref (http://svmlight.joachims.org) for a binary classification problem. I don't have much experience with this package and so I seek help with the following questions: (1) My features are all discrete/nominal. Is there a special way…
Sabba
  • 561
  • 2
  • 6
  • 15
1
vote
2 answers

why training and testing file same in svmlight

I Downloaded the SVM-Light for linux OS. run the Commands .It produce 2 executable svm_learn and svm_classify. Using this i tried to execte a example file(It contain a train.dat,test.dat files) with following code ./svm_learn example1/train.dat…
user39133
  • 93
  • 1
  • 7
1
vote
1 answer

Java SVM Text Classification , Train & Test Files?

I'm trying to Classify a Text Document into Categories , for example : Document 1 : " Basketball is a good sport " ---> Category : Sport Document 2 : " World war 2 .. " ---> Category : History ... My gool is to create a Java interface with a SVM…
user3187504
  • 21
  • 1
  • 4
1
vote
2 answers

Is it possible to run python libsvm in Android?

I'm developing accelerometer pattern recognition application in android. Questions Is it possible to setup python libsvm in Android? If it is possible how can i do that ? Or any other methods to setup libsvm in Android?
Eranga Perera
  • 908
  • 1
  • 11
  • 21
1
vote
1 answer

OpenCv SVMligh error. "writing alpha file... _____________ no such file or directory

I am running my project and getting this error (http://prntscr.com/2021uq): I am using OpenCV 2,46 SVM Light created on 11. Mai 2011.
1
vote
0 answers

Hog descriptor traininun using SVMs

I am trying to classify road signs. For this reason I want to train Hog descriptors with the use of SVMs. I have extracted the hog descriptors for training data with dimensions 64x64. The positive training data are 60% and the negative 40% of the…
katerina
  • 41
  • 2
1
vote
0 answers

Threshold values b in SVM implementations

I was playing around with my own crude implementation for SVMs using cvxopt for solving the Quadratic programming problem inherent.I am a newbie to SVMs. Because it is my own implementation the onus of figuring out the margin support vectors and the…
Hsolo
  • 45
  • 9
1
vote
1 answer

interpretate result model from svnlight

I want to separate some points of 2 classes in 3D by a plane and thought this should be possible using a support vector machine (SVM). So I set up the following data file (data.txt) to be analyzed with svmlight: -1 1:1 2:1 3:0 1 1:1 2:2 3:0 -1 1:3…
Jan
  • 11
  • 2
0
votes
0 answers

svm_light will not produce output file

I am trying to use the svm_light library,http://www.cs.cornell.edu/people/tj/svm_light/, and I am following the documentation, however, an output file will not be produced. I have my .dat files in a folder called data When I try running ./svm_learn…
biglemon29
  • 35
  • 7
0
votes
0 answers

How do you properly install SVM-Light on python?

I am at my windows machine and I am trying to install the extension SVM-Light https://pypi.org/project/svmlight/ to my Python directory. I have already extracted the files to my directory folder but I cannot seem to be able to install it…
0
votes
1 answer

undefined reference to sqrt in SVM-Struct (have used -lm)

Actually, I am working with the well-known SVM-struct project (http://www.cs.cornell.edu/people/tj/svm_light/svm_struct.html)on Ubuntu 16.04. I followed the instructions in http://www.cs.cornell.edu/people/tj/svm_light/svm_multiclass.html to use…
Joxixi
  • 651
  • 5
  • 18
0
votes
2 answers

How to load SVMlight format files in compressed form to pandas?

I have data in SVMlight format (label feature1:value1 feature2:v2 ...) as such talk.politics.guns a:12 about:1 abrams:1 absolutely:1 talk.politics.mideast I:4 run:10 go:3 I tried sklearn.load_svmlight_file but it doesn't seem to work with…
Hackore
  • 163
  • 1
  • 12
0
votes
1 answer

How can I handle the error in load_svmlight_file?

when I run this code in mac: x_train, y_train = load_svmlight_file("mq2008.train") I get this error in bash: -bash: syntax error near unexpected token `(' and if I run it in shell, I face this error: NameError: name 'load_svmlight_file' is not…
Roza
  • 7
  • 2