diff --git a/hyperparameter_tuning/r_bring_your_own/Dockerfile b/hyperparameter_tuning/r_bring_your_own/Dockerfile index 8f441f5113..5ca1d8798a 100644 --- a/hyperparameter_tuning/r_bring_your_own/Dockerfile +++ b/hyperparameter_tuning/r_bring_your_own/Dockerfile @@ -8,7 +8,31 @@ RUN apt-get -y update && apt-get install -y --no-install-recommends \ r-base-dev \ ca-certificates -RUN R -e "install.packages(c('mda', 'plumber'), repos='https://cloud.r-project.org')" +RUN R -e "install.packages(c('Rcpp', 'BH', 'R6', 'jsonlite', 'crayon'), repos='https://cloud.r-project.org')" + +RUN wget http://cran.r-project.org/src/contrib/Archive/stringi/stringi_1.2.4.tar.gz +RUN R CMD INSTALL stringi_1.2.4.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/rlang/rlang_0.2.2.tar.gz +RUN R CMD INSTALL rlang_0.2.2.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/magrittr/magrittr_1.5.tar.gz +RUN R CMD INSTALL magrittr_1.5.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/later/later_0.7.5.tar.gz +RUN R CMD INSTALL later_0.7.5.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/promises/promises_1.0.1.tar.gz +RUN R CMD INSTALL promises_1.0.1.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/httpuv/httpuv_1.4.4.2.tar.gz +RUN R CMD INSTALL httpuv_1.4.4.2.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/mda/mda_0.4-10.tar.gz +RUN R CMD INSTALL mda_0.4-10.tar.gz + +RUN wget http://cran.r-project.org/src/contrib/Archive/plumber/plumber_0.4.6.tar.gz +RUN R CMD INSTALL plumber_0.4.6.tar.gz COPY mars.R /opt/ml/mars.R COPY plumber.R /opt/ml/plumber.R diff --git a/hyperparameter_tuning/r_bring_your_own/tune_r_bring_your_own.ipynb b/hyperparameter_tuning/r_bring_your_own/tune_r_bring_your_own.ipynb index 7a8c873773..072a57b9a7 100644 --- a/hyperparameter_tuning/r_bring_your_own/tune_r_bring_your_own.ipynb +++ b/hyperparameter_tuning/r_bring_your_own/tune_r_bring_your_own.ipynb @@ -225,7 +225,7 @@ ")\n", "\n", "estimator = sagemaker.estimator.Estimator(\n", - " image_name=\"{}.dkr.ecr.{}.{}/rmars:latest\".format(account, region, domain),\n", + " image_uri=\"{}.dkr.ecr.{}.{}/rmars:latest\".format(account, region, domain),\n", " role=role,\n", " train_instance_count=1,\n", " train_instance_type=\"ml.m4.xlarge\",\n",