We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad55af6 commit 053bd8cCopy full SHA for 053bd8c
src/gbt_convertors.pyx
@@ -121,6 +121,12 @@ def get_gbt_model_from_xgboost(booster: Any) -> Any:
121
self.parent_id = parent_id
122
self.position = position
123
124
+ # Release Note for XGBoost 1.5.0: Python interface now supports configuring
125
+ # constraints using feature names instead of feature indices.
126
+ if booster.feature_names is None:
127
+ lst = [*range(booster.num_features())]
128
+ booster.feature_names = [str(i) for i in lst]
129
+
130
trees_arr = booster.get_dump(dump_format="json")
131
xgb_config = json.loads(booster.save_config())
132
0 commit comments