7726c889f593b9a5fae9bd679f2fad7fb92a9a97,lightning/impl/sdca.py,SDCAClassifier,fit,#SDCAClassifier#Any#Any#,133
Before Change
return losses[self.loss]
def fit(self, X, y):
self.label_binarizer_ = LabelBinarizer(neg_label=-1, pos_label=1)
Y = np.asfortranarray(self.label_binarizer_.fit_transform(y),
dtype=np.float64)
return self._fit(X, Y)
After Change
return losses[self.loss]
def fit(self, X, y):
self._set_label_transformers(y)
Y = np.asfortranarray(self.label_binarizer_.transform(y),
dtype=np.float64)
return self._fit(X, Y)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: scikit-learn-contrib/lightning
Commit Name: 7726c889f593b9a5fae9bd679f2fad7fb92a9a97
Time: 2016-09-21
Author: kmike84@gmail.com
File Name: lightning/impl/sdca.py
Class Name: SDCAClassifier
Method Name: fit
Project Name: scikit-learn-contrib/lightning
Commit Name: 7726c889f593b9a5fae9bd679f2fad7fb92a9a97
Time: 2016-09-21
Author: kmike84@gmail.com
File Name: lightning/impl/svrg.py
Class Name: SVRGClassifier
Method Name: fit
Project Name: scikit-learn-contrib/lightning
Commit Name: 7726c889f593b9a5fae9bd679f2fad7fb92a9a97
Time: 2016-09-21
Author: kmike84@gmail.com
File Name: lightning/impl/dual_cd.py
Class Name: LinearSVC
Method Name: fit
Project Name: scikit-learn-contrib/lightning
Commit Name: 7726c889f593b9a5fae9bd679f2fad7fb92a9a97
Time: 2016-09-21
Author: kmike84@gmail.com
File Name: lightning/impl/tests/test_sag.py
Class Name: PySAGClassifier
Method Name: fit
Project Name: scikit-learn-contrib/lightning
Commit Name: 7726c889f593b9a5fae9bd679f2fad7fb92a9a97
Time: 2016-09-21
Author: kmike84@gmail.com
File Name: lightning/impl/adagrad.py
Class Name: AdaGradClassifier
Method Name: fit