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
12
votes
2 answers

Python Svmlight Error: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

I'm running python 2.7.5 with scikit_learn-0.14 on my Mac OSX Mountain Lion. Everything I run a svmlight command however, I get the following warning: DeprecationWarning: using a non-integer number instead of an integer will result in an error >in…
Brian Lin
  • 131
  • 1
  • 2
  • 6
8
votes
2 answers

File format for classification using SVM light

I am trying to build a classifier using SVM light which classifies a document in one of the two classes. I have already trained and tested the classifier and a model file is saved to the disk. Now I want to use this model file to classify completely…
ritesh
  • 229
  • 1
  • 5
  • 12
6
votes
4 answers

dyld: Library not loaded: lib/libopencv_core.3.0.dylib Reason: image not found

I am getting the following issue: /Users/luke/Desktop/trainHOG/trainhog ; exit; dyld: Library not loaded: lib/libopencv_core.3.0.dylib Referenced from: /Users/luke/Desktop/trainHOG/trainhog Reason: image not found Trace/BPT trap: 5 logout I am…
user40987
  • 101
  • 1
  • 7
4
votes
2 answers

R - convert a data frame to a data set formatted as featureName:featureValue

It turns out the format I wanted is called "SVM-Light" and is described here http://svmlight.joachims.org/. I have a data frame that I would like to convert to a text file with format as follows: output featureIndex:featureValue ...…
Timothée HENRY
  • 14,294
  • 21
  • 96
  • 136
4
votes
1 answer

How to interpret SVM-light results

I'm using SVM-light as its written in tutorial to classify data into 2 classes: Train file: +1 6357:1 8984:1 11814:1 15465:1 16031:1 +1 6357:1 7629:0.727 7630:42 7631:0.025 -1 6357:1 11814:1 11960:1 13973:1 ... And test file: 0 6357:1 8984:1…
aromatvanili
  • 175
  • 4
  • 12
4
votes
1 answer

What is the prediction file in SVMlight?

I am new to SVMlight. I downloaded the source code and compiled SVMlight. I created training and testing data sets. And ran [command] creating a model file. Using this model file, I ran svm_classify creating a prediction file. The prediction file…
user39133
  • 93
  • 1
  • 7
3
votes
1 answer

SVM with probability estimates

I have a binary classification problem i am solving with SVM. The classes are unbalanced in the training data. I now need to get posterior probabilities outputs, and not just a binary score. I tried to use Platt scaling by either Weka's SMO, and…
Yonanam
  • 321
  • 1
  • 3
  • 6
3
votes
0 answers

SVMlight VS class SVM opencv

I want to classify road signs using Hog descriptors and SVMs (a linear kernel). I am going to classify each sign versus a non sign (eg different training for each sign). After some research I have seen that it is better to use SVMlight instead of…
katerina
  • 41
  • 2
3
votes
3 answers

How setup libsvm in Android?

Im trying to setup libsvm in android to detect motion from accelerometer. I have no idea how to setup libsvm in android and how to use it. guys can you give clue for this ?
Eranga Perera
  • 908
  • 1
  • 11
  • 21
2
votes
1 answer

python sklearn read very big svmlight file

I am using python 2.7 with svmlight to store and read a very big svmlight format file. I am reading the file using import sklearn rows, labels = sklearn.datasets.load_svmlight_file(matrixPath, zero_based=True) The file is too big to be stored in…
thebeancounter
  • 4,261
  • 8
  • 61
  • 109
2
votes
0 answers

SVMLight: "Version of model-file does not match version of svm_classify!"

I've got the most current version of SVMLight installed (V6.02). I can create a model with no trouble using svm_learn, but when I go to classify with svm_classify, I get the following: Reading model...Version of model-file does not match version of…
Bob Arens
  • 21
  • 2
2
votes
1 answer

Why Dmatrix from xgboost loads svm light text files so fast

I am using svm light files as a storage for sparse matrix. A test shows that for a 31700108x54070 matrix with 570601944 entries import xgboost as xgb dtrain = xgb.DMatrix(train_file) used 21seconds, way faster than from sklearn.datasets import…
Vimos
  • 691
  • 1
  • 9
  • 23
2
votes
1 answer

What does each item mean in svmLight Format

I am very confused about what each part means in a svmLight data format. For example: (label/target, [(feature, value), ...], queryid) Does the label means the rank of the data and queryid is the id of the object? For example: for the following…
2
votes
1 answer

Overflow error with load_svmlight_file() from sklearn

I've created a SVMlight file with only one line from a pandas dataframe: from sklearn.datasets import load_svmlight_file from sklearn.datasets import dump_svmlight_file dump_svmlight_file(toy_data.drop(["Output"], …
саша
  • 521
  • 5
  • 20
2
votes
1 answer

Experiment with OHSUMED dataset using SVM Rank

I am trying to learn RankSVM using OHSUMED dataset and SVM Rank library as explained in following link: http://research.microsoft.com/en-s/um/beijing/projects/letor/Baselines/RankSVM-Struct.txt I used same parameters as link suggests for OHSUMED…
1
2 3 4 5 6 7