lihang-code icon indicating copy to clipboard operation
lihang-code copied to clipboard

第2章 感知机 scikit-learn实例

Open junliang230 opened this issue 4 years ago • 1 comments

请问为什么clf = Perceptron(fit_intercept=False, max_iter=1000, shuffle=False)这里的fit_intercept要设置为false呢,这样不就没有截距了吗

junliang230 avatar Sep 08 '19 11:09 junliang230

应该因为感知器模型产生的超平面一定会经过原点,所以截距为0.

Yangweb72 avatar Mar 12 '21 14:03 Yangweb72