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:

  1. Setup Python Auptimizer environment by python -m aup.setup

  2. Change your R script:

    1. Make all hyperparameters as global variables.

    2. Add #!/usr/bin/env Rscript as the first line.

    3. Add source("auptimizer").

    4. Add get_config(), which will automatically update the hyperparameters globally set in step a.

    5. Add print_result(score) to return the target score you want to optimize for you script.

    6. Change file permission as chmod u+x <your_R_script>.

    7. Add them into an Auptimizer experiment by python -m aup.init.

  3. Run Auptimizer as python -m aup experiment.json.

Examples

We provide two simple examples to use auptimizer on Github.

More Information

See Auptimizer Github for more information.