当我使用H2o包运行随机森林模型时,出现以下错误。H2o包中的字符串向量不允许操作
Error: DistributedException from localhost/127.0.0.1:54321, caused by java.lang.IllegalArgumentException: Operation not allowed on string vector.
我跑的代码如下: -
fit = h2o.randomForest(x = indep, y = dep, training_frame = QCAnalysis_sub_h2o, seed = 1234, ntrees = 500, mtries = 3, max_depth = 50)
上的错误请澄清。
请添加一些示例数据,可能您的列中有一列是不允许作为输入的字符向量 – timfaber