我想将 CatBoost 回归器用于保险应用(泊松目标)。由于我需要修复曝光,如何设置log_exposure的偏移量?使用 xgboost 时,我使用“base_margin”,而对于 lightgbm,我使用“init_score”参数。 CatBoost 中有等效的吗?
最佳答案
只需在 CatBoostRegressor 模型上使用“set_scale_and_bias(scale,bias)”方法即可。 bias参数将设置模型预测结果的偏移量,而scale参数应保留默认值1。 对于您的保险泊松目标,偏差应设置为对数(曝光)。
在此处查看更多详细信息:CatBoost documentation
关于offset - catboost 回归器的 base_margin 或 init_score,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65637467/