ads.model.common package

Submodules

ads.model.common.utils module

class ads.model.common.utils.MetadataArtifactPathType[source]

Bases: ExtendedEnum

Enum for defining metadata artifact path type. Can be either local path or OSS path. It can also be the content itself.

CONTENT = 'content'
LOCAL = 'local'
OSS = 'oss'
ads.model.common.utils.fetch_manifest_from_conda_location(env_location: str)[source]

Convenience method to fetch the manifest file from a conda environment.

Parameters:

env_location (str) – Absolute path to the environment.

ads.model.common.utils.zip_artifact(artifact_dir: str) str[source]

Prepares model artifacts ZIP archive.

Parameters:

artifact_dir (str) – Path to the model artifact.

Returns:

Path to the model artifact ZIP archive file.

Return type:

str

Module contents