Skip to content

Commit

Permalink
Change binning behavior to be same as PR microsoft#2342.
Browse files Browse the repository at this point in the history
  • Loading branch information
btrotta committed Sep 10, 2019
1 parent fec30a5 commit 503e7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python_package_test/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ def test_max_bin_by_feature(self):
}
lgb_data = lgb.Dataset(X, label=y)
est = lgb.train(params, lgb_data, num_boost_round=1)
self.assertEqual(len(np.unique(est.predict(X))), 99)
self.assertEqual(len(np.unique(est.predict(X))), 100)
params['max_bin_by_feature'] = [2, 100]
lgb_data = lgb.Dataset(X, label=y)
est = lgb.train(params, lgb_data, num_boost_round=1)
Expand Down

0 comments on commit 503e7b4

Please sign in to comment.