![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
xgboost
文章平均质量分 79
phyllisyuell
学习交流,做一枚认真的程序媛!
展开
-
XGBoost常见错误与调优
一、常见错误1、空值报错信息:java.lang.RuntimeException: you can only specify missing value as 0.0 (the currently set value NaN) when you have SparseVector or Empty vector as your feature formatat ml.dmlc.xgboost4j.scala.spark.XGBoost$$anonfun$verifyMissingSettin原创 2021-02-24 10:48:37 · 1359 阅读 · 0 评论 -
xgboost 逻辑回归:objective参数(reg:logistic,binary:logistic,binary:logitraw,)对比分析
熟悉xgboost的小伙伴都知道,它在训练模型时,有train()方法和fit()方法,train方法使用如下:params ={'eta': 0.1, 'max_depth': 4, 'num_boost_round':20, 'objective': 'reg:logistic', 'random_state': ...原创 2018-07-11 22:26:53 · 28827 阅读 · 7 评论 -
xgboost 多分类:objective参数(reg:linear,multi:softmax,multi:softprob)对比分析
一、问题上篇文章中我们已经搞明白了逻辑回归的问题中,xgboost的train(),fit()方法已经不同参数的objective的对应的输出结果和关系,这篇文章我们就来研究下xgboost再做多分类时,train(),fit()建模后输出的值是怎么样的,它都有那些objective的参数,并且分别对应着怎样的输出?二、objective参数比较xgboost的官方文档关于多分类的objectiv...原创 2018-07-12 19:12:49 · 36105 阅读 · 3 评论