a580281571e5fd8f7148bae2d84ebaf0d99ee018,Orange/widgets/regression/owlinearregression.py,OWLinearRegression,commit,#OWLinearRegression#,104
Before Change
def commit(self):
alpha = self.alphas[self.alpha_index]
args = {"preprocessors": self.preprocessors}
if self.reg_type == OWLinearRegression.OLS:
learner = LinearRegressionLearner(**args)
elif self.reg_type == OWLinearRegression.Ridge:
learner = RidgeRegressionLearner(alpha=alpha, **args)
After Change
def commit(self):
alpha = self.alphas[self.alpha_index]
preprocessors = self.preprocessors
if self.data is not None and np.isnan(self.data.Y).any():
self.warning(0, "Missing values of target variable(s)")
if not self.preprocessors:
if self.reg_type == OWLinearRegression.OLS:
preprocessors = LinearRegressionLearner.preprocessors
elif self.reg_type == OWLinearRegression.Ridge:
preprocessors = RidgeRegressionLearner.preprocessors
else:
preprocessors = LassoRegressionLearner.preprocessors
else:
preprocessors = list(self.preprocessors)
preprocessors.append(RemoveNaNClasses())
args = {"preprocessors": preprocessors}
if self.reg_type == OWLinearRegression.OLS:
learner = LinearRegressionLearner(**args)
elif self.reg_type == OWLinearRegression.Ridge:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: biolab/orange3
Commit Name: a580281571e5fd8f7148bae2d84ebaf0d99ee018
Time: 2015-10-30
Author: tankovesna@hotmail.com
File Name: Orange/widgets/regression/owlinearregression.py
Class Name: OWLinearRegression
Method Name: commit
Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_inventory_provider
Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_provider