Skip to content

Commit 2ab7e34

Browse files
author
Hobson Lane
committed
clf = Perceptron
1 parent 9f65998 commit 2ab7e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/linear_model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,6 @@ This way, we can solve the XOR problem with a linear classifier::
12391239
[ 1., 0., 1., 0.],
12401240
[ 1., 1., 0., 0.],
12411241
[ 1., 1., 1., 1.]])
1242-
>>> reg = Perceptron(fit_intercept=False, n_iter=10, shuffle=False).fit(X, y)
1243-
>>> reg.score(X, y)
1242+
>>> clf = Perceptron(fit_intercept=False, n_iter=10, shuffle=False).fit(X, y)
1243+
>>> clf.score(X, y)
12441244
1.0

0 commit comments

Comments
 (0)