Error: could not find function "makeLearner" using h2o package
Error: could not find function "makeLearner" using h2o package
我正在使用 h2o
包并尝试使用下面给定的代码创建学习器
install.packages("h2o")
library("h2o")
h2o.learner <- makeLearner("regr.h2o.deeplearning",predict.type = "response")
但是我遇到了这个错误
> h2o.learner <- makeLearner("regr.h2o.deeplearning",predict.type = "response")
Error: could not find function "makeLearner"
注意:几个月前我使用这段代码没有任何问题。
知道这个错误可能是什么原因吗?
makeLearner()
不是 H2O 的一部分。它似乎是 mlr package 的一部分。似乎 mlr 确实支持 h2o,所以它可能就像在脚本顶部添加 library(mlr)
一样简单? (当然,确保已经安装了 mlr 包。)
正确的代码是
library(mlr)
h2o.learner = makeLearner("regr.h2o.deeplearning")
我正在使用 h2o
包并尝试使用下面给定的代码创建学习器
install.packages("h2o")
library("h2o")
h2o.learner <- makeLearner("regr.h2o.deeplearning",predict.type = "response")
但是我遇到了这个错误
> h2o.learner <- makeLearner("regr.h2o.deeplearning",predict.type = "response")
Error: could not find function "makeLearner"
注意:几个月前我使用这段代码没有任何问题。
知道这个错误可能是什么原因吗?
makeLearner()
不是 H2O 的一部分。它似乎是 mlr package 的一部分。似乎 mlr 确实支持 h2o,所以它可能就像在脚本顶部添加 library(mlr)
一样简单? (当然,确保已经安装了 mlr 包。)
正确的代码是
library(mlr)
h2o.learner = makeLearner("regr.h2o.deeplearning")