python - catboost 超参数调整时的joblibsystemerror
问题描述
我正在尝试使用来自sklearn的 GridsearchCV 找到Catboost 分类器的最佳值。
from catboost import CatBoostClassifier
from sklearn.grid_search import GridSearchCV
cb_model =
CatBoostClassifier(iterations=1000,learning_rate=0.01,depth=12,eval_metric='AUC',random_seed = 42,bagging_temperature = 0.8,od_type='Iter',metric_period =
50,od_wait=20)
param_test5 = {'learning_rate':[0.01,0.025,0.045,0.0625,0.1],'iterations' : [500,750,1000,1250]}
gsearch5 = GridSearchCV(estimator = CatBoostClassifier(iterations=750,learning_rate=0.01,depth=12,eval_metric='AUC',random_seed = 42,bagging_temperature = 0.2,od_type='Iter',metric_period = 50,od_wait=20),
param_grid = param_test5, scoring='roc_auc',n_jobs=3,iid=False, cv=5,verbose = 2)
gsearch5.fit(features,target)
gsearch5.grid_scores_, gsearch5.best_params_, gsearch5.best_score_,gsearch5.best_estimator_
解决方案
推荐阅读
- jquery - 使用数据选择 tr
- reactjs - 从调度程序获取未定义的结果
- java - 你能改变一个不可变的类吗?
- c++ - C++ std::thread 在没有活动异常的情况下终止调用已中止
- tensorflow - 自定义反向传播
- react-native - 关于反应原生的 podfile 问题
- android - 如何确保为每个设备创建一个房间,而不是每次启动应用程序时创建一个新实例
- python - 聚合函数的分组和过滤
- mysql - 如何使用python访问位于不同位置(非本地)的另一台机器上的MySQL数据库
- angular - 使用 ngx-translate/core 进行角度翻译