There are NAN in the matrix, however, you did not set missing=NAN
生活随笔
收集整理的這篇文章主要介紹了
There are NAN in the matrix, however, you did not set missing=NAN
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
?
解決方案:
clf = xgb.XGBClassifier(n_estimators=500,max_depth=9,learning_rate=0.05,subsample=0.9,colsample_bytree=0.9,missing=np.nan,random_state=2019,tree_method='gpu_hist' # THE MAGICAL PARAMETER )?
總結
以上是生活随笔為你收集整理的There are NAN in the matrix, however, you did not set missing=NAN的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: dataframe输出某列的数据以及统计
- 下一篇: dataframe两列相乘构造新特征