Questions tagged [liblinear]

LIBLINEAR is a library for large linear classification

LIBLINEAR is an integrated software for large-scale linear classification, regression and distribution estimation. It interfaces to several commonly used languages, such as Python, MATLAB, Java, PHP, Ruby and Perl.

67 questions
9
votes
1 answer

Different accuracies across different svm libraries with same parameters on same data

I am using libsvm and I did a very simple experiment, training 10k vectors and testing with only 22. I am using the linear kernel with parameter cost C=1. My problem is multiclass. So Libsvm will use the one-versus-one approach to classify my…
mad
  • 2,677
  • 8
  • 35
  • 78
7
votes
1 answer

Why can't LinearSVC do this simple classification?

I'm trying to do the following simple classification using the LinearSVC object in scikit-learn. I've tried using both version 0.10 and 0.14. Using the code: from sklearn.svm import LinearSVC, SVC from numpy import * data = array([[ 1007., …
Isaac
  • 3,586
  • 1
  • 18
  • 20
5
votes
0 answers

What could cause liblinear to reach the maximal number of iterations?

I use liblinear with my program to perform multi-class classification with the L2R_L2LOSS_SVC_DUAL solver. In the current test-setup I have 1600 instances from a total of 9 classes with 1000 features each. I'm trying to determine the optimal C…
Callidior
  • 2,899
  • 2
  • 18
  • 28
5
votes
0 answers

How can I deal with Liblinear's output in c++?

I'm trying to get liblinear to work in c++, but the library call to train(problem*, parameter*) is sending output to the terminal. Sometimes it says the optimization finished, other times it seems to be outputting internal state (why?). What does…
Sveltely
  • 822
  • 1
  • 8
  • 22
4
votes
0 answers

`sample_weight` in sklearn LogisticRegression: How It Works?

fit method of LogisticRegression has a optional sample_weight parameter. I follow the python code and find it just does some trivial things and dispatches to underlying solvers (e.g. liblinear). How sample_weight works? does it work thought…
FooBee
  • 778
  • 7
  • 23
4
votes
1 answer

Accord.Net - CacheSize on LibLinear

I'm attempting to classify some inputs (text classification: 10,000+ examples, and 100,000+ features) And I've read that using LibLinear is far faster / more memory efficient for such tasks, as such, I've ported my LibSvm classifier to accord/net,…
Dave Bish
  • 19,263
  • 7
  • 46
  • 63
3
votes
1 answer

Meaning of `penalty` and `loss` in LinearSVC

Anti-closing preamble: I have read the question "difference between penalty and loss parameters in Sklearn LinearSVC library" but I find the answer there not to be specific enough. Therefore, I’m reformulating the question: I am familiar with SVM…
Igor F.
  • 2,649
  • 2
  • 31
  • 39
3
votes
1 answer

Why Classification model in weka predicting all instances as one class?

I have built a classification model using weka.I have two classes namely {spam,non-spam} After applying stringtowordvector filter, I get 10000 attributes for 19000 records. Then I am using liblinear library to build model which gives me F-score as…
user2335004
  • 121
  • 1
  • 10
3
votes
1 answer

multiple classification using Liblinear in Accord.net Framework

I need to implement multiple classification classifier using Liblinear. Accord.net machine learning framework provides all of Liblinear properties except the Crammer and Singer’s formulation for multi-class classification. This is the process.
3
votes
0 answers

Building a supervised multi label predictor with sparse training data

I am trying to build a supervised multi label predictor. I have tried using a liblinear binary classifier with a model per label but I am not getting good results probably because the training data is very sparse (many of the input documents do not…
3
votes
1 answer

Instance weighing in Libsvm / Liblinear

I often use the instance weights with Libsvm for classification problems. http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/#weights_for_data_instances Does anyone know the details of the algorithm that is implemented when one uses instance weighing in…
chet
  • 607
  • 1
  • 6
  • 11
3
votes
1 answer

difference between penalty and loss parameters in Sklearn LinearSVC library

I'm not very familiar with SVM Theory and I'm using this LinearSVC class in python: http://scikit-learn.org/stable/modules/generated/sklearn.svm.LinearSVC.html#sklearn.svm.LinearSVC I was wondering what is the difference between penalty and loss…
user3821329
  • 317
  • 1
  • 6
  • 14
3
votes
1 answer

How to understand bias parameter in LIBLINEAR?

I don't understand the meaning of bias parameter in the API of LIBLINEAR. Why is it specified by user during the training? Shouldn't it be just a distance from the separating hyperplane to origin which is a parameter of the learned model? This is…
lizarisk
  • 7,562
  • 10
  • 46
  • 70
2
votes
1 answer

Is it normal to have intercept_ = 0.0 in scikit's LogisticRegression?

I've been struggling to justify why I'm getting intercept_=0.0 with LogisticRegression from scikit-learn. The fitted Logistic Regression has the following parameters: LogisticRegression(C=0.0588579519026603, class_weight='balanced', …
HLopes
  • 155
  • 5
2
votes
0 answers

Reducing Model file size in LIBSVM

I want to reduce the model file size . Can we reduce it by reducing the number of digits in the weights of the model file. The number of classes in my model file is around 3800 and the number of features is around 357000. Here is some excerpt from…
user2507447
  • 21
  • 1
  • 3
1
2 3 4 5