lihang-code
lihang-code copied to clipboard
第2章 感知机 scikit-learn实例
请问为什么clf = Perceptron(fit_intercept=False, max_iter=1000, shuffle=False)这里的fit_intercept要设置为false呢,这样不就没有截距了吗
应该因为感知器模型产生的超平面一定会经过原点,所以截距为0.