In some cases, you might find that you do not want your users to download artifacts directly to their machines. Driverless AI provides several configuration options/environment variables that enable exporting of artifacts instead of downloading. Artifacts can be exported to a file system directory or an Amazon S3 bucket.
Note: The option to download artifacts is automatically disabled when exporting is enabled.
Enabling Artifact Exports¶
The config.toml file exposes the following variables:
enable_artifacts_upload: Replace all the downloads on the experiment page to exports, and allow users to push to the artifact store configured with
artifacts_store. This is disabled by default.
artifacts_store: Specify one of the following storage methods:
file_system: Store artifacts in the file system directory specified by the
S3: Store artifacts in the S3 bucket specified by the
Specify the following for the storage method you selected:
File System Directory
artifacts_file_system_directory: The file system location where artifacts will be copied. This is expected to be a directory on your server.
artifacts_s3_bucket: The AWS S3 bucket where artifacts will be stored.
Note: The option to disable artifact downloads does not extend to datasets. Whether users can download datasets is controlled by the
enable_dataset_downloading configuration option, which is set to
true by default. Set this to
false if you do not want users to download datasets to their local machine. There is currently no configuration option that enables exporting datasets to a file system.
Exporting an Artifact¶
When the export artifacts options are enabled/configured, the menu options on the Completed Experiment page will change. Specifically, all “Download” options (with the exception of Autoreport) will change to “Export.”
Click on an artifact to begin exporting. For example, click on Export Summary and Logs.
Specify a file name or use the default file name. This denotes the new name to be given to the exported artifact. By default, this name matches the selected export artifact name.
Now click the Summary and Logs: Export to Data Store button. (Note that this button name changes depending on the artifact that you select.) This begins the export action. Upon completion, the exported artifact will display in the list of artifacts. The directory structure is: <path_to_export_to>/<user>/<experiment_id>/
Continue exporting additional artifacts for this experiment.