Description Usage Arguments Value Examples See Also
An Estimator wraps run configuration information for specifying details
of executing an R script. Running an Estimator experiment
(using submit_experiment()
) will return a ScriptRun
object and
execute your training script on the specified compute target.
To define the environment to use for training, you can either directly
provide the environment-related parameters (e.g. cran_packages
,
custom_docker_image
) to estimator()
, or you can provide an
Environment
object to the environment
parameter. For more information
on the predefined Docker images that are used for training if
custom_docker_image
is not specified, see the documentation
here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | estimator(
source_directory,
compute_target = NULL,
vm_size = NULL,
vm_priority = NULL,
entry_script = NULL,
script_params = NULL,
cran_packages = NULL,
github_packages = NULL,
custom_url_packages = NULL,
custom_docker_image = NULL,
image_registry_details = NULL,
use_gpu = FALSE,
environment_variables = NULL,
shm_size = NULL,
max_run_duration_seconds = NULL,
environment = NULL,
inputs = NULL
)
|
source_directory |
A string of the local directory containing experiment configuration and code files needed for the training job. |
compute_target |
The |
vm_size |
A string of the VM size of the compute target that will be
created for the training job. The list of available VM sizes
are listed here.
Provide this parameter if you want to create AmlCompute as the compute target
at run time, instead of providing an existing cluster to the |
vm_priority |
A string of either |
entry_script |
A string representing the relative path to the file used to start training. |
script_params |
A named list of the command-line arguments to pass to
the training script specified in |
cran_packages |
A list of |
github_packages |
A list of |
custom_url_packages |
A character vector of packages to be installed from local directory or custom URL. |
custom_docker_image |
A string of the name of the Docker image from
which the image to use for training will be built. If not set, a predefined
image will be used as the base image. To use an image from a
private Docker repository, you will also have to specify the
|
image_registry_details |
A |
use_gpu |
Indicates whether the environment to run the experiment should
support GPUs. If |
environment_variables |
A named list of environment variables names and values. These environment variables are set on the process where the user script is being executed. |
shm_size |
A string for the size of the Docker container's shared
memory block. For more information, see
Docker run reference.
If not set, a default value of |
max_run_duration_seconds |
An integer of the maximum allowed time for the run. Azure ML will attempt to automatically cancel the run if it takes longer than this value. |
environment |
The |
inputs |
A list of DataReference objects or DatasetConsumptionConfig objects to use as input. |
The Estimator
object.
1 2 3 4 5 6 7 | r_env <- r_environment(name = "r-env",
cran_packages = list(cran_package("dplyr"),
cran_package("ggplot2")))
est <- estimator(source_directory = ".",
entry_script = "train.R",
compute_target = compute_target,
environment = r_env)
|
r_environment()
, container_registry()
, submit_experiment()
,
dataset_consumption_config()
, cran_package()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.