libsvm - use grid.py with liblinear giving error -
i've been using linear kernels in libsvm following command
python grid.py -log2c -1,10,1 -log2g -1,1,1 -t 0 data
but consider linear kernel in libsvm different liblinear. example given in liblinear official site gives me "valueerror: not convert string float: null"
python grid.py -log2c -3,0,1 -log2g null -svmtrain ./train heart_scale
the other example in liblinear documentation doesn't work neither, saying "unknown option: -g" , typeerror in line 219: if rate none: raise "get no rate".
./grid.py -log2c -14,14,1 -log2g 1,1,1 -svmtrain ./train news20.scale
i'm wondering what's right way of using liblinear train grid.py.
get latest version of grid.py the libsvm website. happen modifying copy of grid.py @ moment , can see explicitly has handling -log2g null
.
Comments
Post a Comment