loads a model from a text file
model = libsvm_loadmodel(model_file_name)
string
model from libsvm_train
Loads a model from a text file. The format is compatible to svm_save_model and svm_load_model from the c++ function of 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) clear model; model = libsvm_loadmodel("testmodel.txt")