我在R中使用h2o.randomforest在2个组上构建一个分类器,说组“A”&组“B”。作为一个例子,我生成的样本数据集随机如下所示,并转换成一个h2oframe: a <- sample(0:1,10000,replace=T)
b <- sample(0:1,10000,replace=T)
c <- sample(1:10,10000,replace=T)
所以我正在做RandomForest和GridsearchCV一些参数的事情。这是我的代码。 #Import 'GridSearchCV' and 'make_scorer'
from sklearn.model_selection import GridSearchCV
from sklearn.metrics import make_scorer
Create the paramete
我跟着这个例子: https://www.2021.ai/randsharkmachinelearning/ 运行在读该命令时: sharkFit <- SharkRFTrain(X, Y, nTrees = 100)
我得到: Error in SharkRFTrain(X, Y, nTrees = 100) :
Should not call this. Fix the rand
我目前正试图建立一个堆叠模型使用caretEnsemble包,使用随机森林和广义推动模型作为基础模型。不过,我一直在运行caretEnsemble功能后,收到以下错误: Error in check_caretList_model_types(list_of_models) :
Not yet implemented for multiclass problems
已经完成对这个问题的一些研