dai.download_mojo.RdBuilds and downloads MOJO for the model.
dai.download_mojo( model, path = getwd(), force = FALSE, progress = getOption("dai.progress", TRUE) )
| model | DAIModel |
|---|---|
| path | Destination path - either a directory or a full file path. |
| force | Whether to overwrite the file at |
| progress | Whether to display a progress bar. |
The path to the downloaded pipeline.
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) mojo_path <- dai.download_mojo(model, path = tempdir(), progress = FALSE) print(mojo_path)