Environment Class

Environment for training.

Inheritance
azure.ai.ml.entities._assets.asset.Asset
Environment

Constructor

Environment(*, name: Optional[str] = None, version: Optional[str] = None, description: Optional[str] = None, image: Optional[str] = None, build: Optional[azure.ai.ml.entities._assets.environment.BuildContext] = None, conda_file: Optional[Union[os.PathLike, str]] = None, tags: Optional[Dict] = None, properties: Optional[Dict] = None, datastore: Optional[str] = None, **kwargs)

Parameters

name
str
Required

Name of the resource.

version
str
Required

Version of the asset.

description
str
Required

Description of the resource.

image
str
Required

URI of a custom base image.

build
BuildContext
Required

Docker build context to create the environment. Mutually exclusive with "image"

conda_file
<xref:Optional>[str, <xref:os.Pathlike>]
Required

Path to configuration file listing conda packages to install.

tags
dict[str, str]
Required

Tag dictionary. Tags can be added, removed, and updated.

properties
dict[str, str]
Required

The asset property dictionary.

datastore
str
Required

The datastore to upload the local artifact to.

kwargs
dict
Required

A dictionary of additional configuration parameters.

Methods

validate

validate

validate()

Attributes

conda_file

Conda environment specification.

Returns

Conda dependencies loaded from conda_file param.

Return type

<xref:Dict>