Skip to content

Commit

Permalink
test indicates exactly what score failed
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarouc committed Jun 24, 2017
1 parent e0041ad commit 00eb7a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ def test_run():
report = poly(data, label, n_folds=2, verbose=1,
feature_selection=False,
save=False, project_name='test2')
assert (report.scores.mean()[:, 'test'] > 0.5).all(),\
'test score below chance'
assert (report.scores.mean()[:, 'train'] > 0.5).all(),\
'train score below chance'
for key, score in report.scores.mean().iteritems():
assert score < 5, '{} score is too low'.format(key)


@pytest.mark.medium
Expand Down

0 comments on commit 00eb7a9

Please sign in to comment.