a2a7810d41524ee038baf5508ef374e1bc970fd3,lightning/impl/tests/test_sag.py,,test_l1_regularized_saga,#,252
Before Change
penalty="l1", random_state=0)
saga = SAGAClassifier(eta=1e-3, alpha=0.0, beta=beta, max_iter=10,
penalty="l1", random_state=0)
pysaga.fit(X_bin, y_bin)
saga.fit(X_bin, y_bin)
np.testing.assert_array_almost_equal(pysaga.coef_, saga.coef_)
After Change
def test_l1_regularized_saga():
X_sparse = sparse.rand(100, 50, density=.5, random_state=0).tocsr()
y_sparse = np.random.randint(0, high=2, size=100)
for (X, y) in ((X_bin, y_bin), (X_sparse, y_sparse)):
for beta in np.logspace(-3, 3, 10):
pysaga = PySAGAClassifier(eta=1e-3, alpha=0.0, beta=beta,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: scikit-learn-contrib/lightning
Commit Name: a2a7810d41524ee038baf5508ef374e1bc970fd3
Time: 2016-01-10
Author: f@bianp.net
File Name: lightning/impl/tests/test_sag.py
Class Name:
Method Name: test_l1_regularized_saga
Project Name: bashtage/linearmodels
Commit Name: 12679af141523fc96e446656e41bd877ac7108ab
Time: 2017-04-05
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_firstdifference_ols.py
Class Name:
Method Name: test_firstdifference_ols_weighted
Project Name: Kaggle/docker-python
Commit Name: f3951d4f887f45e66b415620c50afbc31cbf3895
Time: 2021-02-01
Author: rosbo@google.com
File Name: tests/test_xgboost.py
Class Name: TestXGBoost
Method Name: test_classifier
Project Name: automl/auto-sklearn
Commit Name: 82c8f4ab1719ab20cac830e5febd9235ab2fe846
Time: 2015-06-11
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/models/nested_cv_evaluator.py
Class Name: NestedCVEvaluator
Method Name: fit