f3951d4f887f45e66b415620c50afbc31cbf3895,tests/test_xgboost.py,TestXGBoost,test_classifier,#TestXGBoost#,14
Before Change
self.assertGreaterEqual(StrictVersion(xgboost.__version__), StrictVersion("1.2.1"))
def test_classifier(self):
boston = datasets.load_boston()
X, y = boston.data, boston.target
xgb1 = XGBClassifier(n_estimators=3)
xgb1.fit(X[0:70],y[0:70])
After Change
self.assertGreaterEqual(StrictVersion(xgboost.__version__), StrictVersion("1.2.1"))
def test_classifier(self):
X_train = np.random.random((100, 28))
y_train = np.random.randint(10, size=(100, 1))
X_test = np.random.random((100, 28))
y_test = np.random.randint(10, size=(100, 1))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: scikit-learn/scikit-learn
Commit Name: 5a33360ebb84c5f89035417c5aee042dab235127
Time: 2020-06-23
Author: jliu176@gmail.com
File Name: sklearn/ensemble/tests/test_gradient_boosting.py
Class Name:
Method Name:
Project Name: scikit-learn/scikit-learn
Commit Name: 6f33c5ccb42043c28d390f5ff08cff9317060bc8
Time: 2020-05-26
Author: jliu176@gmail.com
File Name: sklearn/neural_network/tests/test_mlp.py
Class Name:
Method Name: