forked from WinVector/WinVector.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallH2O.R
More file actions
25 lines (18 loc) · 939 Bytes
/
installH2O.R
File metadata and controls
25 lines (18 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Setting up H2O for R from: http://www.h2o.ai/download/h2o/r
# The following two commands remove any previously installed H2O packages for R.
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
# Next, we download packages that H2O depends on.
pkgs <- c("methods","statmod","stats","graphics","RCurl","jsonlite","tools","utils")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
}
# Now we download, install and initialize the H2O package for R.
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turin/4/R")))
#library(h2o)
#localH2O = h2o.init(nthreads=-1)
# Finally, let's run a demo to see H2O at work.
#demo(h2o.kmeans)
# more sources:
# http://learn.h2o.ai/content/tutorials/deeplearning/
# http://www.h2o.ai/verticals/algos/deep-learning/