ads.model.common package

Submodules

ads.model.common.utils module

ads.model.common.utils.extract_region() Optional[str]

Extracts region information from the environment variables.

Returns:

The region identifier. For example: us-ashburn-1. Returns None if region not extracted.

Return type:

Union[str, None]

ads.model.common.utils.fetch_manifest_from_conda_location(env_location: str)

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

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