Cleanup configuration for constraints. (#7758)

This commit is contained in:
Jiaming Yuan
2022-03-29 04:22:46 +08:00
committed by GitHub
parent 3c9b04460a
commit a50b84244e
5 changed files with 53 additions and 42 deletions

View File

@@ -98,7 +98,7 @@ class TestMonotoneConstraints:
# next check monotonicity when initializing monotone_constraints by feature names
params = {
'tree_method': 'hist', 'verbosity': 1,
'tree_method': 'hist',
'grow_policy': 'lossguide',
'monotone_constraints': {'feature_0': 1, 'feature_1': -1}
}