错误:找不到对象“ h2o.targetencoder”

时间:2019-09-25 06:47:39

标签: r machine-learning rstudio h2o

我想使用:h2o.targetencoder函数,然后我这样做:

> install.packages("h2o")
> library("h2o")
> h2o.targetencoder

但出现以下错误:

Error: object 'h2o.targetencoder' not found

与此同时,我看到该函数在这里定义:

https://github.com/h2oai/h2o-3/blob/jenkins-rel-yau-5/h2o-r/h2o-package/R/targetencoder.R

关于如何使用函数的任何想法:h2o.targetencoder

谢谢!

1 个答案:

答案 0 :(得分:2)

您很可能没有使用最新版本的H2O,请从h2o.ai/download网站获得或直接运行

install.packages(“ h2o”,类型=“ source”,repos =“ http://h2o-release.s3.amazonaws.com/h2o/rel-yau/5/R”)

您可以在此处找到示例:https://github.com/h2oai/h2o-3/blob/rel-yau/h2o-r/tests/testdir_algos/targetencoder/runit_targetencoder_model.R#L7