我试图在python笔记本中使用XGBClassifier作为:
from xgboost import XGBClassifier要查看使用的默认参数的值,我执行了以下操作:
XGBClassifier()它输出以下输出,所有参数的默认值均为None:
XGBClassifier(base_score=None, booster=None, colsample_bylevel=None,
colsample_bynode=None, colsample_bytree=None,
enable_categorical=False, gamma=None, gpu_id=None,
importance_type=None, interaction_constraints=None,
learning_rate=None, max_delta_step=None, max_depth=None,
min_child_weight=None, missing=nan, monotone_constraints=None,
n_estimators=100, n_jobs=None, num_parallel_tree=None,
predictor=None, random_state=None, reg_alpha=None,
reg_lambda=None, scale_pos_weight=None, subsample=None,
tree_method=None, validate_parameters=None, verbosity=None)有人能告诉我为什么所有这些价值都是零吗?
发布于 2022-03-25 13:15:43
不幸的是,这些是类(来源)的默认参数。真正的默认超参数存储在python包装器调用的C++代码中。
https://stackoverflow.com/questions/71612653
复制相似问题