Scikit Learn SVC decision_function and predict

后端 未结 6 1569
攒了一身酷
攒了一身酷 2020-11-30 17:15

I\'m trying to understand the relationship between decision_function and predict, which are instance methods of SVC (http://scikit-learn.org/stable/modules/generated/sklear

6条回答
  •  没有蜡笔的小新
    2020-11-30 18:01

    They probably have a bit complicated mathematical relation. But if you use the decision_function in LinearSVC classifier, the relation between those two will be more clear! Because then decision_function will give you scores for each class label (not same as SVC) and predict will give the class with the best score.

提交回复
热议问题