Skip to content

Commit

Permalink
fixed failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
miltminz committed Dec 8, 2020
1 parent 13a0882 commit 48dc220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def test_train_random_forest(self):
def test_xgb_model(self):
data = load_breast_cancer()
a, b, c, d = score_v0.split_train_test(data['data'], data['target'])
_, _, preds = score_v0.xgb_model(a, c, b, d)
_, _, preds = score_v0.xgb_model(a, c, b, d, params={'min_child_weight': 5, 'eta': .1})
self.assertEqual(len(preds), 114)
self.assertEqual(preds[0].round(3), np.float32(0.865))
self.assertEqual(preds[0].round(3), np.float32(0.996))


if __name__ == "__main__":
Expand Down

0 comments on commit 48dc220

Please sign in to comment.