转载博文:win10(64-bit) + python3.6.0(64-bit) 配置libsvm-3.22

https://blog.csdn.net/weixin_35884839/article/details/79398085   (亲测是成功的!)

测试例子:

https://blog.csdn.net/jeryjeryjery/article/details/72628255

libsvm的README:

The above command loads
svm_train() : train an SVM model
svm_predict() : predict testing data
svm_read_problem() : read the data from a LIBSVM-format file.
svm_load_model() : load a LIBSVM model.
svm_save_model() : save model to a file.
evaluations() : evaluate prediction results.

- Function: evaluations

Calculate some evaluations using the true values (ty) and predicted
values (pv):

>>> (ACC, MSE, SCC) = evaluations(ty, pv)

ty: a list of true values.

pv: a list of predict values.

ACC: accuracy.

MSE: mean squared error.

SCC: squared correlation coefficient.

Libsvm使用方法,各函数作用等:

https://www.cnblogs.com/Finley/p/5329417.html


05-14 11:21