Код: Выделить всё
model_json = lgb_model.dump_model()
with open(f"lightgbm_model_{i + 1}.json", "w") as f:
json.dump(model_json, f, indent=2)
Код: Выделить всё
{
"tree_info": [
{
"tree_index": 0,
"num_leaves": 3,
"tree_structure": {
"split_index": 0,
"split_feature": 0,
"threshold": 10,
"decision_type": "