download_model: Download a model to the local file system

Description Usage Arguments Value Examples

View source: R/model.R

Description

Download a registered model to the target_dir of your local file system.

Usage

1
download_model(model, target_dir = ".", exist_ok = FALSE)

Arguments

model

The Model object.

target_dir

A string of the path to the directory on your local file system for where to download the model to. Defaults to ".".

exist_ok

If FALSE, replace the downloaded folder/file if they already exist.

Value

A string of the path to the file or folder of the downloaded model.

Examples

1
2
3
4
5
6
## Not run: 
ws <- load_workspace_from_config()
model <- get_model(ws, name = "my_model", version = 2)
download_model(model, target_dir = tempdir(), exist_ok = TRUE)

## End(Not run)

azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.