Learn R Programming

mlflow (version 0.7.0)

mlflow_client_log_artifact: Log Artifact

Description

Logs an specific file or directory as an artifact.

Usage

mlflow_client_log_artifact(client, run_id, path, artifact_path = NULL)

Arguments

client

An `mlflow_client` object.

run_id

Run ID.

path

The file or directory to log as an artifact.

artifact_path

Destination path within the run<U+2019>s artifact URI.

Details

The Tracking Client family of functions require an MLflow client to be specified explicitly. These functions allow for greater control of where the operations take place in terms of services and runs, but are more verbose compared to the Fluent API.

When logging to Amazon S3, ensure that the user has a proper policy attach to it, for instance:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:GetBucketLocation" ], "Resource": [ "arn:aws:s3:::mlflow-test/*", "arn:aws:s3:::mlflow-test" ] } ] }

Additionally, at least the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables must be set to the corresponding key and secrets provided by Amazon IAM.

See Also

Other Tracking client functions: mlflow_client_create_experiment, mlflow_client_create_run, mlflow_client_delete_experiment, mlflow_client_delete_run, mlflow_client_download_artifacts, mlflow_client_get_experiment_by_name, mlflow_client_get_experiment, mlflow_client_get_run, mlflow_client_list_artifacts, mlflow_client_list_experiments, mlflow_client_log_metric, mlflow_client_log_param, mlflow_client_restore_experiment, mlflow_client_restore_run, mlflow_client_set_tag, mlflow_client_set_terminated