Builds and downloads Python scoring pipeline for the model.

dai.download_python_pipeline(
  model,
  path = getwd(),
  force = FALSE,
  progress = getOption("dai.progress", TRUE)
)

Arguments

model

DAIModel

path

Destination path - either a directory or a full file path.

force

Whether to overwrite the file at path if it already exists.

progress

Whether to display a progress bar.

Value

The path to the downloaded pipeline.

Examples

dai.connect(uri = 'http://127.0.0.1:12345', username = 'h2oai', password = 'h2oai')
iris_dai <- as.DAIFrame(iris, progress = FALSE)
model <- dai.train(training_frame = iris_dai,
                   target_col = 'Species',
                   is_classification = TRUE,
                   is_timeseries = FALSE,
                   time = 1, accuracy = 1, interpretability = 10,
                   progress = FALSE)
scorer_path <- dai.download_python_pipeline(model, path = tempdir(), progress = FALSE)
print(scorer_path)