Experiments

Package: databricks.bundles.experiments

Classes

class DependsOn
resource: str

Key of the resource to depend on, as foo or jobs.foo, or of its grants or permissions, as schemas.foo.grants.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class ExperimentPermissionLevel

Permission level

CAN_MANAGE = 'CAN_MANAGE'
CAN_EDIT = 'CAN_EDIT'
CAN_READ = 'CAN_READ'
class ExperimentTag

A tag for an experiment.

key: str | None = None

The tag key. Keys are at most 255 characters long.

value: str | None = None

The tag value. Values are at most 65535 characters long.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class Lifecycle
depends_on: list[DependsOn]

Resources that must be deployed before this resource and deleted after it. Unlike variable references, this only affects ordering.

prevent_destroy: bool | None = None

Lifecycle setting to prevent the resource from being destroyed.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class MlflowExperiment
name: str

Name of the experiment, as an absolute path in the workspace. Experiments cannot be created under /Repos.

artifact_location: str | None = None

URI of the location where the artifacts of the experiment’s runs are stored, such as a Unity Catalog volume path of the form dbfs:/Volumes/<catalog>/<schema>/<volume>/<path>. The URI must have a scheme other than file and must not point under the MLflow-managed prefix dbfs:/databricks/mlflow-tracking. If omitted, artifacts are stored in MLflow-managed storage. See https://docs.databricks.com/aws/en/mlflow/experiments for the supported locations.

lifecycle: Lifecycle | None = None

Settings that control the deployment lifecycle of the resource, such as preventing it from being destroyed.

permissions: list[MlflowExperimentPermission]

The permissions to apply to this resource.

tags: list[ExperimentTag]

Tags to set on the new experiment, as key-value pairs. A request can include at most 100 tags.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict
class MlflowExperimentPermission
level: ExperimentPermissionLevel

The permission level to apply. The allowed levels depend on the resource type.

group_name: str | None = None

The name of the group granted the permission level.

service_principal_name: str | None = None

The name of the service principal granted the permission level.

user_name: str | None = None

The name of the user granted the permission level.

classmethod from_dict(
value: dict,
) → Self
as_dict(
self,
) → dict