在LightGBM中,Max_depth = -1(无限制)是什么意思?

问题描述 投票:0回答:1

在LightGBM中调整参数

max_depth
时,无限制是什么意思? 每棵树都有不同的深度吗? 有没有办法检查训练后的模型深度是多少?

max depth hyperparameters lightgbm
1个回答
0
投票

来自 LightGBM 文档: max_depth (int, 可选 (默认=-1)) – 基础学习器的最大树深度,<=0 means no limit.

https://lightgbm.readthedocs.io/en/latest/pythonapi/lightgbm.LGBMClassifier.html

© www.soinside.com 2019 - 2024. All rights reserved.