Skip to content

Commit

Permalink
Merge pull request #2247 from jerneju/gh-1842-test-score
Browse files Browse the repository at this point in the history
[FIX] Test & Score: Instantly recognize new input
  • Loading branch information
lanzagar authored Apr 24, 2017
2 parents 5524ed9 + c5c6e87 commit f593bbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Orange/widgets/evaluate/owtestlearners.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,18 +438,17 @@ def _update_results(self):
elif self.test_data.domain.class_var != class_var:
self.Error.class_inconsistent()
return
elif self.test_data is not None:
self.Warning.test_data_unused()

# items in need of an update
items = [(key, slot) for key, slot in self.learners.items()
if slot.results is None]
learners = [slot.learner for _, slot in items]

if len(items) == 0:
return

if self.test_data is not None and \
self.resampling != OWTestLearners.TestOnTest:
self.Warning.test_data_unused()

rstate = 42
def update_progress(finished):
self.progressBarSet(100 * finished)
Expand Down

0 comments on commit f593bbf

Please sign in to comment.