debug
mumujunV5
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
xgboost模型训练出来的错误Error during wrapup: NA/NaN argument
最近想写一个自动寻找最佳参数的xgboost模型,然后将最佳参数带入建模(尽管这个功能caret可以实现,但是希望能够实现使用分层抽样的样本进行模型训练),在使用一个data.frame传入参数进行xgboost模型训练的时候,反复报错: #clist中储存了最佳参数: study max_depth eta nround gamma subsample auc <chr> <dbl> <dbl> <dbl>原创 2021-10-12 20:33:10 · 2345 阅读 · 0 评论 -
R语言sparse.model.matrix函数报错
在使用xgboost模型之前,需要将数据进行one hot encoding,按照教程输入以下代码: train_matrix <- sparse.model.matrix(outcome ~ .-1, train) R语言一直报错: Error in model.spmatrix(t, data, transpose = transpose, drop.unused.levels = drop.unused.levels, : fnames == names(mf) are not...原创 2021-09-28 23:15:50 · 1894 阅读 · 0 评论 -
ImportError: cannot import name 'factorial' from 'scipy.misc'解决办法
最近安装了plotnine的库,因为有些图用seaborn没办法精细的处理,就想着用python版的ggplot2试试看。 我的python是3.7.0,安装好plotnine后,运行: from plotnine import * 出现错误:ImportError: cannot import name 'factorial' from 'scipy.misc'. 网上好多出现这个错误...原创 2020-02-28 00:59:13 · 8640 阅读 · 5 评论
分享