在r上安装h2o的问题 [英] issue installing h2o on r

查看:288
本文介绍了在r上安装h2o的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用安装软件包来安装h2o.虽然我可以执行h2o.init(),但找不到h2o.autoML函数:

I used install package to install h2o. While I could do h2o.init(), the h2o.autoML function isn't found:

could not find function "h2o.automl"

经过一番搜索,我在tar.gz中安装了版本.但是在安装后,即使h2o.init()也不再起作用,并显示此错误:

After some searching I installed the 'nightly bleeding edge' version in tar.gz. but after install that even h2o.init() no longer works and shows this error:

Error: package or namespace load failed for ‘h2o’ in get(method, envir = home):
 lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/h2o/R/h2o.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1

推荐答案

在过去的两个月中,h2o.automl()函数已包含在每晚的发行版中,因此,如果您已正确安装了软件包,则应将其包含在其中.我建议在3.12预览版"上发布夜间版本,因为3.12的AutoML中存在一些错误.

The h2o.automl() function has been included in the nightly releases for the past 2 months, so it should be in there if you have correctly installed the package. I recommend the nightly release over the 3.12 "preview release" because 3.12 has some bugs in it with AutoML.

每晚发布的版本(从昨晚开始)可以在此处安装:

The nightly release (from last night) can be installed here:

install.packages("h2o", type="source", repos="https://h2o-release.s3.amazonaws.com/h2o/master/3978/R")

稍后阅读此书的人,应该访问此页面以获得最新版本的链接.

Those reading this later, should visit this page to get the link to the most recent version.

在R中安装后,启动H2O群集并验证版本.它应该与下面的相同:

After installation in R, start up the H2O cluster and verify the version. It should be the same as below:

> h2o.init()
Reading in config file: ./../../.h2oconfig

H2O is not running yet, starting it now...

Note:  In case of errors look at the following log files:
    /var/folders/2j/jg4sl53d5q53tc2_nzm9fz5h0000gn/T//RtmpV47QKn/h2o_me_started_from_r.out
    /var/folders/2j/jg4sl53d5q53tc2_nzm9fz5h0000gn/T//RtmpV47QKn/h2o_me_started_from_r.err

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Starting H2O JVM and connecting: .. Connection successful!

R is connected to the H2O cluster: 
    H2O cluster uptime:         1 seconds 983 milliseconds 
    H2O cluster version:        3.13.0.3978 
    H2O cluster version age:    10 hours and 6 minutes  
    H2O cluster name:           H2O_started_from_R_me_flj500 
    H2O cluster total nodes:    1 
    H2O cluster total memory:   3.56 GB 
    H2O cluster total cores:    8 
    H2O cluster allowed cores:  8 
    H2O cluster healthy:        TRUE 
    H2O Connection ip:          localhost 
    H2O Connection port:        54321 
    H2O Connection proxy:       NA 
    H2O Internal Security:      FALSE 
    H2O API Extensions:         XGBoost, Algos, AutoML, Core V3, Core V4 
    R Version:                  R version 3.3.2 (2016-10-31) 

AutoML将包含在下一个或两周内发布的下一个H2O稳定发行版3.14.0.1中.

AutoML will be included in the next stable release of H2O, 3.14.0.1, to be released in the next week or two.

这篇关于在r上安装h2o的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆