log_artifact | R Documentation |
Logs a specific file or directory as an artifact for a run. Modeled after aws.s3::s3write_using
log_artifact(
x,
FUN,
filename,
run_id,
client = mlflow_client(),
pause_base = 0.5,
max_times = 5,
pause_cap = 60,
...
)
## Default S3 method:
log_artifact(
x,
FUN = saveRDS,
filename,
run_id = get_active_run_id(),
client = mlflow_client(),
pause_base = 0.5,
max_times = 5,
pause_cap = 60,
...
)
## S3 method for class 'ggplot'
log_artifact(
x,
FUN,
filename,
run_id = get_active_run_id(),
client = mlflow_client(),
pause_base = 0.5,
max_times = 5,
pause_cap = 60,
...
)
x |
The object to log as an artifact |
FUN |
the function to use to save the artifact |
filename |
the name of the file to save |
run_id |
A run uuid. Automatically inferred if a run is currently active. |
client |
An MLFlow client. Auto-generated if not provided |
pause_base, max_times, pause_cap |
See insistently |
... |
Additional arguments to pass to |
When logging to Amazon S3, ensure that you have the s3:PutObject, s3:GetObject, s3:ListBucket, and s3:GetBucketLocation permissions on your bucket.
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.
The path to the file, invisibly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.