Skip to content

Commit cfd5062

Browse files
author
Denis Kataev
committed
E203 whitespace before ':'
1 parent a7ad372 commit cfd5062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/model_evaluation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ permitted and will require a wrapper to return a single metric:
262262
>>> fp = lambda y_true, y_pred: confusion_matrix(y_true, y_pred)[0, 1]
263263
>>> fn = lambda y_true, y_pred: confusion_matrix(y_true, y_pred)[1, 0]
264264
>>> tp = lambda y_true, y_pred: confusion_matrix(y_true, y_pred)[1, 1]
265-
>>> scoring = {'tp' : make_scorer(tp), 'tn' : make_scorer(tn),
266-
... 'fp' : make_scorer(fp), 'fn' : make_scorer(fn)}
265+
>>> scoring = {'tp': make_scorer(tp), 'tn': make_scorer(tn),
266+
... 'fp': make_scorer(fp), 'fn': make_scorer(fn)}
267267
>>> cv_results = cross_validate(svm.fit(X, y), X, y,
268268
... scoring=scoring, cv=5)
269269
>>> # Getting the test set true positive scores

0 commit comments

Comments
 (0)