Setup for R¶
Install Auptimizer for R User¶
From the R-src folder, run the following command in R will install the Auptimzier R interface:
install.packages('devtools')
devtools::install('Rpackage')
See below for setting up Auptimizer.
Experiment Setup¶
Auptimizer is running in Python. See setup in Python first.
The main workflow is blow:
Setup Python Auptimizer environment by
python -m aup.setup
Change your R script:
Make all hyperparameters as global variables.
Add
#!/usr/bin/env Rscript
as the first line.Add
source("auptimizer")
.Add
get_config()
, which will automatically update the hyperparameters globally set in step a.Add
print_result(score)
to return the target score you want to optimize for you script.Change file permission as
chmod u+x <your_R_script>
.Add them into an Auptimizer experiment by
python -m aup.init
.
Run Auptimizer as
python -m aup experiment.json
.
More Information¶
See Auptimizer Github for more information.