offset - catboost 回归器的 base_margin 或 init_score

标签 offset poisson gbm catboost exposure

我想将 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/

相关文章:

jquery - offset().left 返回奇怪的值

apache-kafka - 如何从Kafka中的旧偏移点获取数据?

python - matlab中的泊松点过程

Java:限制在小区域内的基于泊松的点过程

r - H2o GBM 模型中的树 split

ios - 阻止嵌入的 UITableView 垂直偏移

javascript - 在带有图像映射的 Firefox 和 Opera 中,顶部偏移返回不正确

machine-learning - 梯度提升树如何计算分类误差?

wolfram-mathematica - 随机泊松噪声

tensorflow - 如何使用 Tensorflow 或 GBM 调整模型以获得罕见的二元结果