@@ -310,7 +310,6 @@ def set_learner(self, learner, key):
310310 learner : Optional[Orange.base.Learner]
311311 key : Any
312312 """
313- self .cancel ()
314313 if key in self .learners and learner is None :
315314 # Removed
316315 self ._invalidate ([key ])
@@ -392,7 +391,6 @@ def set_test_data(self, data):
392391 ----------
393392 data : Optional[Orange.data.Table]
394393 """
395- self .cancel ()
396394 self .Information .test_data_sampled .clear ()
397395 self .Error .test_data_empty .clear ()
398396 if data is not None and not data :
@@ -448,13 +446,11 @@ def set_preprocessor(self, preproc):
448446 """
449447 Set the input preprocessor to apply on the training data.
450448 """
451- self .cancel ()
452449 self .preprocessor = preproc
453450 self ._invalidate ()
454451
455452 def handleNewSignals (self ):
456453 """Reimplemented from OWWidget.handleNewSignals."""
457- self .cancel ()
458454 self ._update_class_selection ()
459455 self .score_table .update_header (self .scorers )
460456 self .update_stats_model ()
@@ -591,6 +587,7 @@ def _on_target_class_changed(self):
591587 self .update_stats_model ()
592588
593589 def _invalidate (self , which = None ):
590+ self .cancel ()
594591 self .fold_feature_selected = \
595592 self .resampling == OWTestLearners .FeatureFold
596593 # Invalidate learner results for `which` input keys
0 commit comments