Properties
Methods
update
update(
name: Optional[str] = None, filename: Optional[str] = None,
object_name: Optional[str] = None, large: Optional[bool] = None
)
Description
Update this artifact.
Examples
this_artifact.update(object_name="another-path-to-artifact")
delete
delete()
Description
Delete this artifact
Examples
this_artifact.delete()
download
download(
target_path: Union[str, Path] = './', force_replace: bool = False
)
Description
Download an experiment's artifact to a given target_path.
Examples
this_artifact.download("myDir")
file_list = os.path.listdir("myDir")
print(file_list)
>>> ["saved_model.zip"]
Arguments
-
target_path (str or Path, optional) : Path to download the file to, default to cwd. Defaults to './'.
-
force_replace : (bool, optional): Replace an existing file if exists. Defaults to False.