Skip to content

Commit 3870448

Browse files
authored
Merge pull request #1043 from Trusted-AI/dependabot/pip/xgboost-1.4.0
Bump xgboost from 1.3.3 to 1.4.0
2 parents da5d0fb + a1eeadf commit 3870448

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ torchvision==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
3131
catboost==0.25.1
3232
GPy==1.9.9
3333
lightgbm==3.2.1
34-
xgboost==1.3.3
34+
xgboost==1.4.0
3535
kornia~=0.5.0
3636

3737
# Lingvo ASR dependencies

tests/metrics/test_verification_decision_trees.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def setUp(cls):
6161
master_seed(seed=42)
6262

6363
def test_XGBoost(self):
64-
model = XGBClassifier(n_estimators=4, max_depth=6)
64+
model = XGBClassifier(n_estimators=4, max_depth=6, objective="multi:softprob", eval_metric="merror")
6565
model.fit(self.x_train, np.argmax(self.y_train, axis=1))
6666

6767
classifier = XGBoostClassifier(model=model, nb_features=self.n_features, nb_classes=self.n_classes)
@@ -71,8 +71,8 @@ def test_XGBoost(self):
7171
x=self.x_test, y=self.y_test, eps_init=0.3, nb_search_steps=10, max_clique=2, max_level=2
7272
)
7373

74-
self.assertEqual(average_bound, 0.03186914062500001)
75-
self.assertEqual(verified_error, 0.99)
74+
self.assertEqual(average_bound, 0.0011425781249999997)
75+
self.assertEqual(verified_error, 1.0)
7676

7777
def test_LightGBM(self):
7878
train_data = lightgbm.Dataset(self.x_train, label=np.argmax(self.y_train, axis=1))

0 commit comments

Comments
 (0)