简体   繁体   English

如何在Matlab中保存libsvm模型

[英]how to save libsvm model in matlab

I'm using libsvm in matlab, and it seems there no existing method to save the model formed from svmtrain. 我在matlab中使用libsvm,似乎没有现有方法可以保存由svmtrain形成的模型。 Instead, the functions provided forces me to retrain everytime. 相反,提供的功能迫使我每次都要重新培训。 Just saving the svmtrain model variable in a .mat does not work. 仅将svmtrain模型变量保存在.mat中是行不通的。 What should I be doing? 我该怎么办?

The nice thing about SVM, unlike NN is that training is fast and in some cases can be even done online. 与NN不同,关于SVM的好处是训练速度快,在某些情况下甚至可以在线进行。 I have a multiclass SVM and I save the training vectors, classes and the kernel parameters into a txt file. 我有一个多类SVM,并将训练向量,类和内核参数保存到txt文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM