2

当我运行下面的代码时,会出现以下错误:

CatBoostError: c:/goagent/pipelines/buildmaster/catboost.git/catboost/libs/target/target_converter.cpp:64: Unknown class name: "219.9033"

我的代码:

model=CatBoostRegressor(iterations=1000, 
                         depth=5,
                         learning_rate=0.03,
                         loss_function='RMSE',
                         eval_metric='AUC',
                         l2_leaf_reg=10,
                         metric_period=50,
                         thread_count=32,
                         random_seed=42)

Catboost 版本:0.13
Python 版本:3.7

4

1 回答 1

0

我在CatBoostClassifier中看到过这种错误。可能的原因是您的 eval_set 具有火车集没有的值。看看这个帖子寻找线索。

于 2020-09-15T19:39:04.253 回答