Learn R Programming

mlflow (version 0.7.0)

mlflow_log_artifact: Log Artifact

Description

Logs an specific file or directory as an artifact.

Usage

mlflow_log_artifact(path, artifact_path = NULL)

Arguments

path

The file or directory to log as an artifact.

artifact_path

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

Details

The fluent API family of functions operate with an implied MLflow client determined by the service set by `mlflow_set_tracking_uri()`. For operations involving a run it adopts the current active run, or, if one does not exist, starts one through the implied service.

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 Fluent API functions: mlflow_create_experiment, mlflow_end_run, mlflow_log_metric, mlflow_log_param, mlflow_set_experiment, mlflow_set_tag, mlflow_start_run