8000 Joel's suggestions · scikit-learn/scikit-learn@5e19b9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e19b9a

Browse files

author
Nikita Singh
committed
Joel's suggestions
1 parent 13e49fb commit 5e19b9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sklearn/metrics/tests/test_common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,10 @@ def test_sample_weight_invariance(n_samples=50):
10161016
# regression
10171017
y_true = random_state.random_sample(size=(n_samples,))
10181018
y_pred = random_state.random_sample(size=(n_samples,))
1019-
y_score = random_state.random_sample(size=(n_samples,))
10201019
for name in ALL_METRICS:
10211020
if name not in REGRESSION_METRICS:
10221021
continue
1023-
if (name in METRICS_WITHOUT_SAMPLE_WEIGHT or
1024-
name in METRIC_UNDEFINED_BINARY):
1022+
if name in METRICS_WITHOUT_SAMPLE_WEIGHT:
10251023
continue
10261024
metric = ALL_METRICS[name]
10271025
yield _named_check(check_sample_weight_invariance, name), name,\

0 commit comments

Comments
 (0)
0