问题
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