User Tools

Site Tools


liblinear_hints

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
liblinear_hints [2012/12/07 15:29]
bhkong created
liblinear_hints [2013/02/21 12:57] (current)
bhkong
Line 1: Line 1:
-Quirks:+====== ​Quirks: ​======
  
  
Line 5: Line 5:
  
  
-A simple way to check if this is the case if to look at the Label field of the MATLAB struct that is output from libLinear'​s train and libSVM'​s svmtrain functions. ​Even if you use the library'​s predict function (predict and svmpredict), ​it is still up to the user to translate ​the labels.+A simple way to check if this is the case is to look at the Label field of the MATLAB struct that is output from libLinear'​s train and libSVM'​s svmtrain functions, Label(1) will tell you the label used for positive examplesHowever, ​if you use the library'​s predict function (predict and svmpredict),​ the labels ​will be correctly translated.
  
  
-Source:+Source: ​[[http://​www.csie.ntu.edu.tw/​~cjlin/​libsvm/​faq.html#​f430|http://​www.csie.ntu.edu.tw/​~cjlin/​libsvm/​faq.html#​f430]]
  
  
-[[http://​www.csie.ntu.edu.tw/​~cjlin/​libsvm/​faq.html#​f430|http://​www.csie.ntu.edu.tw/​~cjlin/​libsvm/faq.html#f430]]+====== Differences between libLinear and libSVM: ====== 
 + 
 + 
 +When the bias term learned using libLinear (-B 1) is regularized and is appended to the end of the weight vector, there does not appear to be a way to learn an unregularized bias term with libLinear. However, libSVM is able to learn a bias term rho in the decision function sign(w<​sup>​T</​sup>​ x - rho). 
 + 
 + 
 +Sources: ​[[http://​www.csie.ntu.edu.tw/​~cjlin/​libsvm/​faq.html#​f401|www.csie.ntu.edu.tw/​~cjlin/​libsvm/​faq.html#​f401]] [[http://​www.csie.ntu.edu.tw/​~cjlin/​liblinear/FAQ.html#​training_and_prediction|www.csie.ntu.edu.tw/​~cjlin/​liblinear/​FAQ.html#training_and_prediction]]
  
liblinear_hints.1354922940.txt.gz · Last modified: 2012/12/07 15:29 by bhkong