1a2462f18707e04f294224053473668820111cf5,PyPi/approximators/regressor.py,Regressor,fit,#Regressor#Any#Any#,24
Before Change
y (np.array): target;
fit_params (dict): other parameters.
if x.ndim == 1:
x = np.expand_dims(x, axis=0)
elif x.ndim > 2:
raise ValueError("Training set dimension not suitable for the "
"regressor.")
if self.features:
x = self.features.fit_transform(x)
if self.input_scaled:
After Change
if self.input_scaled:
self.pre_x = preprocessing.StandardScaler()
x[0] = self.pre_x.fit_transform(x[0])
else:
if self.features:
x = self.features.fit_transform(x)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: AIRLab-POLIMI/mushroom
Commit Name: 1a2462f18707e04f294224053473668820111cf5
Time: 2017-07-23
Author: carlo.deramo@gmail.com
File Name: PyPi/approximators/regressor.py
Class Name: Regressor
Method Name: fit
Project Name: nilearn/nilearn
Commit Name: 363cb21af01cd3c86067882b98eb08e6f4a33a75
Time: 2013-08-29
Author: philippe.gervais@inria.fr
File Name: plot_adhd_covariance2.py
Class Name:
Method Name:
Project Name: anttttti/Wordbatch
Commit Name: 7170cdf9c6ed8beacd93738b0ec1c97cfbc23b6e
Time: 2018-04-12
Author: antti.puurula@yahoo.com
File Name: wordbatch/wordbatch.py
Class Name: WordBatch
Method Name: process