Does the decision function in scikit-learn return the true distance to the hyperplane?

孤人 提交于 2021-01-28 09:00:53

问题


Does the decision function return the actual distance to the hyperplane for each sample as stated here. Or do you have to the extra calculation as shown here. Which method should be used?


回答1:


No, that's not the actual distance. And depends on the case, you may (linear kernel) or may not (non-linear kernel) be able to convert that to an actually distance. Here is another good explanation. Not matter what, yes you have to take that extra step if you want the actual distance.



来源:https://stackoverflow.com/questions/44579826/does-the-decision-function-in-scikit-learn-return-the-true-distance-to-the-hyper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!