What is the predicted score and how can I use it for the distance of the datapoint to the hyperplane?
1 次查看(过去 30 天)
显示 更早的评论
I am coding a support vector machine. When I try this code
[label,score] = predict(Model,X_test_best_feature);
then I get something like this i.e. two columns for the score which confuses me.
table(y_test, label, score)
y_test label score
______ _____ ____________________
2 2 -0.99984 0.99984
2 2 -0.99956 0.99956
2 2 -0.99983 0.99983
2 2 -0.99956 0.99956
2 2 -0.99969 0.99969
And how can I use the score to compute the distance of each datapoint to the hyperplane?
1 个评论
Krishna Bindumadhavan
2018-7-9
Did you already have a look at the documentation here: https://www.mathworks.com/help/stats/compactclassificationsvm.predict.html#d119e588869 ?
There is information regarding score both at "Output arguments" and at the end under "More About".
Specifically, the first column contains negative class scores and the second column contains positive class scores.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!