8dc523d9bd92011caca608833221916d9e1b8130,Orange/classification/logistic_regression.py,LogisticRegressionLearner,fit,#LogisticRegressionLearner#Any#Any#Any#,48
Before Change
theta = np.zeros(X.shape[1])
theta, cost, ret = fmin_l_bfgs_b(self.cost_grad, theta,
args=(X, Y.ravel()), **self.fmin_args)
return LogisticRegressionClassifier(theta)
After Change
self.random_state = random_state
def fit(self, X, Y, W):
lr = linear_model.LogisticRegression(
penalty=self.penalty,
dual=self.dual,
tol=self.tol,
C=self.C,
fit_intercept=self.fit_intercept,
intercept_scaling=self.intercept_scaling,
random_state=self.random_state
)
clsf = lr.fit(X, Y.ravel())
return LogisticRegressionClassifier(clsf)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: biolab/orange3
Commit Name: 8dc523d9bd92011caca608833221916d9e1b8130
Time: 2014-02-18
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/classification/logistic_regression.py
Class Name: LogisticRegressionLearner
Method Name: fit
Project Name: scikit-learn/scikit-learn
Commit Name: 9d677b56f4244eb08f1c7e2061a1e86fd0aee748
Time: 2020-05-16
Author: olivier.grisel@gmail.com
File Name: examples/compose/plot_column_transformer_mixed_types.py
Class Name:
Method Name:
Project Name: mne-tools/mne-python
Commit Name: bcabf319eab3dcd3902125da344d13eafd1669a6
Time: 2018-09-27
Author: alexandre.gramfort@m4x.org
File Name: mne/decoding/tests/test_base.py
Class Name:
Method Name: test_cross_val_multiscore