Skip to content

Commit

Permalink
fixed causes of linting errors (try scikit-learn#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiegel committed Nov 25, 2020
1 parent 30f3f5d commit 867249f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sklearn/metrics/tests/test_score_objects.py
Expand Up @@ -989,8 +989,10 @@ def test_scorer_general_multiclass():
lr = LogisticRegression(random_state=0).fit(X_train, y_train)

# don't use these scorers since they're not for multiclass
binary_only = ['top_k_accuracy', 'f1', 'roc_auc', 'average_precision',
'precision', 'recall', 'neg_log_loss', 'neg_brier_score', 'jaccard']
binary_only = [
'top_k_accuracy', 'f1', 'roc_auc', 'average_precision', 'precision',
'recall', 'neg_log_loss', 'neg_brier_score', 'jaccard'
]

for name in CLF_SCORERS:
if name not in binary_only:
Expand Down

0 comments on commit 867249f

Please sign in to comment.