scikit-learn 中的决策函数是否 return 到超平面的真实距离?
Does the decision function in scikit-learn return the true distance to the hyperplane?
决策函数 return 是否为每个样本 here. Or do you have to the extra calculation as shown 到超平面的 实际 距离。应该使用哪种方法?
不,那不是实际距离。并且视情况而定,您可能(线性内核)或可能不(非线性内核)能够将其转换为实际距离。 Here is another good explanation. Not matter what, yes you have to take 如果你想要实际距离。
决策函数 return 是否为每个样本 here. Or do you have to the extra calculation as shown
不,那不是实际距离。并且视情况而定,您可能(线性内核)或可能不(非线性内核)能够将其转换为实际距离。 Here is another good explanation. Not matter what, yes you have to take