Skip to content

Commit c714303

Browse files
tomahawk28luispedro
authored andcommitted
Fix predict method called
1 parent db795e0 commit c714303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch02/figure4_5_no_sklearn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def plot_decision(features, labels):
4545

4646
model = fit_model(1, features[:, (0, 2)], np.array(labels))
4747
C = predict(
48-
np.vstack([X.ravel(), Y.ravel()]).T, model).reshape(X.shape)
48+
model, np.vstack([X.ravel(), Y.ravel()]).T).reshape(X.shape)
4949
if COLOUR_FIGURE:
5050
cmap = ListedColormap([(1., .6, .6), (.6, 1., .6), (.6, .6, 1.)])
5151
else:

0 commit comments

Comments
 (0)