Output 1:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
..Successfully connected to http://127.0.0.1:54321/
R is connected to the H2O cluster:
H2O cluster uptime: 1 seconds 893 milliseconds
H2O cluster version: 3.2.0.5
H2O cluster name: H2O_started_from_R_tkozlowski_ejy175
H2O cluster total nodes: 1
H2O cluster total memory: 26.67 GB
H2O cluster total cores: 80
H2O cluster allowed cores: 2
H2O cluster healthy: TRUE
Note: As started, H2O is limited to the CRAN default of 2 CPUs.
Shut down and restart H2O as shown below to use all your CPUs.
> h2o.shutdown(localH2O)
> localH2O = h2o.init(nthreads = -1)
Output 2:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
..Successfully connected to http://127.0.0.1:54321/
R is connected to the H2O cluster:
H2O cluster uptime: 1 seconds 902 milliseconds
H2O cluster version: 3.2.0.5
H2O cluster name: H2O_started_from_R_tkozlowski_zsa759
H2O cluster total nodes: 1
H2O cluster total memory: 26.67 GB
H2O cluster total cores: 80
H2O cluster allowed cores: 80
H2O cluster healthy: TRUE
I run this:
rf_a =
h2o.randomForest(y = y_var,
x = X_vars,
training_frame = data.train,
validation_frame = data.test,
classification=T,
ntree=100,
depth=50,
importance=T)
But get this:
ERROR: Unexpected HTTP Status code: 412 Precondition Failed (url = http://127.0.0.1:54321/99/Rapids)
water.exceptions.H2OIllegalArgumentException
[1] "water.rapids.Exec.lookup(Exec.java:117)"
[2] "water.rapids.Exec.parse(Exec.java:100)"
[3] "water.rapids.ASTAssign.parse_impl(AST.java:702)"
[4] "water.rapids.ASTAssign.parse_impl(AST.java:673)"
[5] "water.rapids.Exec.parse(Exec.java:101)"
[6] "water.rapids.Exec.exec(Exec.java:64)"
[7] "water.api.RapidsHandler.exec(RapidsHandler.java:37)"
[8] "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"
[9] "sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)"
[10] "sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"
[11] "java.lang.reflect.Method.invoke(Method.java:497)"
[12] "water.api.Handler.handle(Handler.java:58)"
[13] "water.api.RequestServer.handle(RequestServer.java:668)"
[14] "water.api.RequestServer.serve(RequestServer.java:609)"
[15] "water.JettyHTTPD$H2oDefaultServlet.doGeneric(JettyHTTPD.java:617)"
[16] "water.JettyHTTPD$H2oDefaultServlet.doPost(JettyHTTPD.java:565)"
[17] "javax.servlet.http.HttpServlet.service(HttpServlet.java:755)"
[18] "javax.servlet.http.HttpServlet.service(HttpServlet.java:848)"
[19] "org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)"
Error in .h2o.doSafeREST(conn = conn, h2oRestApiVersion = h2oRestApiVersion, :
*Unimplemented* failed lookup on token: ``. Contact sup...@h2o.ai for more information.
rf_a =
h2o.randomForest(y = y_var,
x = X_vars,
training_frame = data.train,
validation_frame = data.test,
classification=T,
ntree=100,
max_depth=50,
importance=T)
Thanks that worked. Weird that the original code was working fine when I didn't specify nthreads =-1.
--
You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/h2ostream/a5471928-d0f2-47a7-a94e-6423f4151f99n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/h2ostream/a2c69efd-5365-482f-9c62-c1074773c4bcn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/h2ostream/fd9d0cdd-1475-4693-86b9-cf2ddb916763n%40googlegroups.com.