node-svm icon indicating copy to clipboard operation
node-svm copied to clipboard

Save model in the standard libsvm format

Open dailypixie opened this issue 8 years ago • 2 comments
trafficstars

I would like to save the trained model as in the standard format, this way i can use it with my other modules. Is it possible?

Ex:

svm_type c_svc
kernel_type sigmoid
gamma 0.5
coef0 0
nr_class 2
total_sv 4
rho -0.389055
label 1 0
nr_sv 2 2
SV
1 2:1 
1 1:1 2:1 
-1 1:8 2:9 
-1 1:7 2:7 

dailypixie avatar Jul 12 '17 05:07 dailypixie

it is possible but dangerous since node-svm comes with automatic normalization and automatic feature reduction that are not supported by libsvm.

by "other modules", do you mean sklearn?

nicolaspanel avatar Jul 17 '17 09:07 nicolaspanel

I'm facing same issue here, i was doing testing with svm-tools and i would like to be able to use svm-predict for example.

piercus avatar Mar 16 '18 15:03 piercus