TabularPredictor.model_hyperparameters¶
- TabularPredictor.model_hyperparameters(model: str, include_ag_args_ensemble: bool = True, output_format: Literal['user', 'all'] = 'user') dict [source]¶
返回给定模型的超参数。
- 参数:
model (str) – 要获取超参数的模型名称。
include_ag_args_ensemble (bool, default True) – 如果为 True,则包含 ag_args_ensemble 参数(如果存在)(例如,当启用 bagging 时)。
output_format ({"user", "all"}, default "user") – 如果为“user”,则返回用户指定的超参数(仅非默认值)。如果为“all”,则返回模型使用的所有超参数(包括用户未指定的默认超参数)无论 output_format 如何,如果传递给 AutoGluon,它们在功能上是等效的。
- 返回:
model_hyperparameters – 模型超参数字典。等同于用户在此模型中指定的 model_hyperparameters,例如在
predictor.fit(…, hyperparameters={…, model_key: […, model_hyperparameters]})
- 返回类型:
dict