| LoggedArtifact | R Documentation |
Comet Artifacts allow keeping track of assets beyond any particular experiment.
The LoggedArtifact is a Comet Artifact that already logged to the Comet servers
and can be used to access the artifact version assets and download them locally.
new()Creates new LoggedArtifact object with provided parameters. Do not use
this method directly. Use Experiment$get_artifact()
to retrieve LoggedArtifact.
LoggedArtifact$new( artifact_name, artifact_type, artifact_id, artifact_version_id, workspace, experiment_key, artifact_version, aliases, artifact_tags, version_tags, size, metadata = NULL, source_experiment_key = NULL )
artifact_name(Required) Artifact name.
artifact_type(Required) The artifact type.
artifact_id(Required) The ID of artifact.
artifact_version_id(Required) The ID of Artifact Version.
workspace(Required) The workspace where artifact saved.
experiment_key(Required) The ID of the associated experiment.
artifact_version(Required) The latest artifact version.
aliases(Required) List of Artifact Version aliases.
artifact_tags(Required) The list of artifact tags.
version_tags(Required) List of Artifact Version tags.
size(Required) The total size of logged artifact version. It is the sum of all the artifact version assets.
metadataThe meta-data of Artifact Version.
source_experiment_keyThe ID of the experiment that created this artifact version.
get_artifact_name()Get the name of the artifact.
LoggedArtifact$get_artifact_name()
get_artifact_type()Get the type of the artifact.
LoggedArtifact$get_artifact_type()
get_artifact_version()Get the version of the artifact.
LoggedArtifact$get_artifact_version()
get_artifact_id()Get the ID of the artifact.
LoggedArtifact$get_artifact_id()
get_artifact_tags()Get the tags of the artifact.
LoggedArtifact$get_artifact_tags()
get_aliases()Get the version of the artifact.
LoggedArtifact$get_aliases()
get_metadata()Get the metadata of the artifact.
LoggedArtifact$get_metadata()
get_version_tags()Get the list of tags of the artifact version.
LoggedArtifact$get_version_tags()
get_workspace()Get the workspace of the Artifact.
LoggedArtifact$get_workspace()
get_artifact_version_id()The ID of current Artifact Version
LoggedArtifact$get_artifact_version_id()
get_source_experiment_key()The ID of the experiment that created this artifact version.
LoggedArtifact$get_source_experiment_key()
get_experiment_key()The ID of the associated experiment.
LoggedArtifact$get_experiment_key()
size()Get/set artifact size.
LoggedArtifact$size(size = NULL)
sizeThe new size for the Artifact or NULL if retrieving existing
size of the Artifact.
get_assets()Get the list of all LoggedArtifactAsset that have been logged with
this LoggedArtifact from Comet server.
LoggedArtifact$get_assets()
get_remote_assets()Get the list of remote LoggedArtifactAsset that have been logged
with this LoggedArtifact from Comet server.
LoggedArtifact$get_remote_assets()
update_artifact_tags()Update the logged artifact tags
LoggedArtifact$update_artifact_tags(artifact_tags)
artifact_tagsThe new tags for the artifact
update_version_tags()Update the logged artifact version tags
LoggedArtifact$update_version_tags(version_tags)
version_tagsThe new tags for the artifact version
update_aliases()Update the logged artifact version aliases
LoggedArtifact$update_aliases(aliases)
aliasesThe new aliases for the artifact version
download()Download the current Artifact Version assets to a given directory (or the local directory by default). This downloads only non-remote assets.
LoggedArtifact$download(path = NULL, overwrite_strategy = FALSE)
pathWhere to download artifact version assets. If not provided, a temporary path will be used.
overwrite_strategyOne of the three possible strategies to handle
conflict when trying to download an artifact version asset to a path with an existing
file. See below for allowed values. Default is FALSE or "FAIL".
Overwrite strategy allowed values:
FALSE or "FAIL": If a file already exists and its content is different, raise the error.
"PRESERVE": If a file already exists and its content is different, show a WARNING but preserve the existing content.
TRUE or "OVERWRITE": If a file already exists and its content is different, replace it
by the asset version asset.
Artifact object.
## Not run:
library(cometr)
# Assuming you have COMET_API_KEY, COMET_WORKSPACE, COMET_PROJECT_NAME variables define
exp <- create_experiment()
# Get a Comet Artifact
artifact <- exp$get_artifact(artifact_name = "workspace/artifact-name:versionOrAlias")
exp$stop()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.