saves a model into a text file
libsvm_savemodel(filename,model)
string
model from libsvm_train
Saves a model into a text file. The textfile can be loaded by the c++ function svm_load_model from the libsvm toolbox.
label_vector=[zeros(20,1);ones(20,1)]; instance_matrix = [rand(20,2); -1*rand(20,2)]; model=libsvm_svmtrain(label_vector,instance_matrix); libsvm_savemodel("testmodel.txt",model)