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

SVM classifier testing works only on images bigger than the training set

I'm implementing, for the first time, a sw for objects detection for static images. My first goal is to detect simple circles, then I'll move to more complex object. Unfortunately it seems I have problem when validating my classifier. My choice was…
Vince
  • 21
  • 2
2
votes
1 answer

Import SVM light file format in NLTK

I am trying to use NLTK for training a Naive Bayes classifier for multi-class text classification. But I do not have access to the original texts. I am provided with is a file in SVM Light format (one instance each line with feature:value pair). I…
ritesh
  • 229
  • 1
  • 5
  • 12
2
votes
1 answer

How to serialize a CObject in Python?

I've trained a SVM classifier using NLTK and svmlight python libraries and when I call pickle.dump(my_classifier, outfile, 1) to save my classifier, it throws this error: File "/usr/lib/python2.7/pickle.py", line 313, in save (t.__name__, obj)) …
rafa
  • 795
  • 1
  • 8
  • 25
2
votes
0 answers

R : Rsofia convert sparse.model.matrix to SVM-light format

I have a data set of ~ 25kR x 10C. Several of the columns contain large numbers of levels in categorical variables. I'm trying to convert the data set to SVM-Light format using the RSofia package but am getting the following error Error in…
screechOwl
  • 27,310
  • 61
  • 158
  • 267
2
votes
2 answers

how to run svm light in java eclipse?

I have downloaded the JNI_SVM-light-6.01-64bit version for running svm in Java. I have tried searching online but did not exactly figure out the steps to run the library using eclipse IDE for java. All I want to do is know how to provide an input…
mag443
  • 191
  • 1
  • 4
  • 12
1
vote
2 answers

Error during the installation of SVM-light

I am trying to install SVM-Light on the cluster that I am working on but I got the following error: svm_hideo.o:(.bss+0x38): multiple definition of `verbosity'; svm_common.o:(.bss+0x8): first defined here collect2: error: ld returned 1 exit…
emr2
  • 1,436
  • 7
  • 23
1
vote
0 answers

Convert dataset with string features into svmlight / libsvm format

I am trying to use sklearn.datasets.dump_svmlight_file function to convert a dataset into an svmlight file. The problem that I have is that some columns are of type string. At this moment, my X array looks similar to this: [['C' '2' 'String1'] …
rayqz
  • 249
  • 1
  • 8
1
vote
1 answer

How to specify feature name for sklearn dump_svmlight_file in python?

Docs: https://scikit-learn.org/stable/modules/generated/sklearn.datasets.dump_svmlight_file.html svmlight follows the data format: With the data: a = [[1,2,3],[4,5,6]] b = [8,9] Running the…
Ben C Wang
  • 617
  • 10
  • 19
1
vote
1 answer

What is the correct svmlight input format in Mallet?

I am using Mallet with the SVMLight input format to do classification usingNaiveBayes classifier. But I get a NumberFormatException. I'm wondering how I can use strings features when using SVMLight. As I read in the guideline 1, the features can…
user1419243
  • 1,655
  • 3
  • 19
  • 33
1
vote
0 answers

use of libSVM tool for performing a multi-class classification

I am trying to perform classification on a satellite image using libSVM library. What I want is to display the classified image and save it,not only to get the accuracy results on my terminal. I have extracted the pixel values from teh training…
Johny
  • 319
  • 3
  • 12
1
vote
1 answer

Python h2o svmlight data

I have an svmlight-formatted file with values of the form: 92.91 18256731:1 71729421:1 72329637:1 83328561:1 118265976:1 134892759:1 198163358:1 352348616:1 526943048:1 5.30 102156934:1 134892759:1 198163358:1 254112843:1 262373758:1 512748316:1…
user90772
  • 387
  • 1
  • 5
  • 12
1
vote
1 answer

pyspark MLUtils saveaslibsvm saving only under _temporary and not saving on master

I use pyspark And use MLUtils saveaslibsvm to save an RDD on labledpoints It works but keeps that files in all the worker nodes under /_temporary/ as many files. No error is thrown, i would like to save the files in the proper folder, and…
thebeancounter
  • 4,261
  • 8
  • 61
  • 109
1
vote
0 answers

How to convert Svmlight data to a database

I am using data in Svmlight format (you may know it as libsvm) this is the format I tried to create a SQL database to store it, the issue is that the format is sparse, and in a regular database it will be very consuming to store the data, and if i…
thebeancounter
  • 4,261
  • 8
  • 61
  • 109
1
vote
1 answer

reading sparse data in h2o using svmlight

I am trying to read a dataset in SVMLight format into h2o. Writing it to a file on disk and reading it back is working OK but reading it directly from R's memory is not. I would like to know if there is a different function or a different way of…
ironv
  • 978
  • 10
  • 25
1
vote
1 answer

Write a text2vec dtm to a file (csv or svmlight)

I came across the text2vec package today and it's exactly what I need for a particular problem. However, I haven't been able to figure out how to export a dtm created with text2vec to some kind of output file. My ultimate goal is to generate…
Dave Kincaid
  • 3,970
  • 3
  • 24
  • 32