Downloads a file from the Driverless AI server.

dai.download_file(
  file_path,
  dest_path,
  force = FALSE,
  progress = getOption("dai.progress", TRUE)
)

Arguments

file_path

Reative file path on the Driverless AI server.

dest_path

Path to the destination directory or file.

force

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

progress

Whether to display a progress bar.

Value

Downloaded file path.

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)
# download model summary
dai.download_file(model$summary_path, tempdir(), progress = FALSE)
# download model logs
dai.download_file(model$log_file_path, tempdir(), progress = FALSE)