python配置libsvm

转载博文: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.


猜你喜欢

转载自www.cnblogs.com/tuji-sjp/p/8947937.html