load_artifact: Load an artifact into an R object

View source: R/runs.R

load_artifactR Documentation

Load an artifact into an R object

Description

Load an artifact into an R object

Usage

load_artifact(
  artifact_name,
  FUN = readRDS,
  run_id = get_active_run_id(),
  client = mlflow_client(),
  pause_base = 0.5,
  max_times = 5,
  pause_cap = 60,
  ...
)

Arguments

artifact_name

The name of the artifact to load

FUN

a function to use to load the artifact

run_id

A run ID to find the URI for

client

An MLFlow client

pause_base, max_times, pause_cap

See insistently

...

Additional arguments to pass on to s3read_using

Value

An R object. The result of s3read_using


collegevine/lightMLFlow documentation built on Jan. 16, 2024, 5:52 a.m.