14d34cf0d3564f56401e425c01be8d6f59752e6c,Orange/widgets/regression/owknnregression.py,OWKNNRegression,apply,#OWKNNRegression#,72
Before Change
learner.name = self.learner_name
model = None
if self.data is not None:
try:
self.warning(0)
model = learner(self.data)
model.name = self.learner_name
except ValueError as err:
self.warning(0, str(err))
self.send("Learner", learner)
self.send("Predictor", model)
After Change
learner.name = self.learner_name
model = None
if self.data is not None:
self.error(0)
if not learner.check_learner_adequacy(self.data.domain):
self.error(0, learner.learner_adequacy_err_msg)
else:
model = learner(self.data)
model.name = self.learner_name
self.send("Learner", learner)
self.send("Predictor", model)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 13
Instances
Project Name: biolab/orange3
Commit Name: 14d34cf0d3564f56401e425c01be8d6f59752e6c
Time: 2015-07-13
Author: tankovesna@hotmail.com
File Name: Orange/widgets/regression/owknnregression.py
Class Name: OWKNNRegression
Method Name: apply
Project Name: biolab/orange3
Commit Name: 14d34cf0d3564f56401e425c01be8d6f59752e6c
Time: 2015-07-13
Author: tankovesna@hotmail.com
File Name: Orange/widgets/classify/owknn.py
Class Name: OWKNNLearner
Method Name: apply
Project Name: biolab/orange3
Commit Name: 14d34cf0d3564f56401e425c01be8d6f59752e6c
Time: 2015-07-13
Author: tankovesna@hotmail.com
File Name: Orange/widgets/classify/owlogisticregression.py
Class Name: OWLogisticRegression
Method Name: apply
Project Name: biolab/orange3
Commit Name: 14d34cf0d3564f56401e425c01be8d6f59752e6c
Time: 2015-07-13
Author: tankovesna@hotmail.com
File Name: Orange/widgets/regression/owlinearregression.py
Class Name: OWLinearRegression
Method Name: apply