Skip to content

MLflow Experiment

laktory.models.resources.databricks.MLflowExperiment ¤

Bases: MlflowExperimentBase

MLflow Experiment

Examples:

import io

from laktory import models

exp_yaml = '''
name: /.laktory/Sample
artifact_location: dbfs:/tmp/my-experiment
description: My MLflow experiment description
access_controls:
- group_name: account users
  permission_level: CAN_MANAGE
'''
exp = models.resources.databricks.MLflowExperiment.model_validate_yaml(
    io.StringIO(exp_yaml)
)
References
BASE DESCRIPTION
artifact_location

Path to artifact location of the MLflow experiment

TYPE: str | None | VariableType DEFAULT: None

creation_time

TYPE: int | None | VariableType DEFAULT: None

description

TYPE: str | None | VariableType DEFAULT: None

experiment_id

TYPE: str | None | VariableType DEFAULT: None

last_update_time

TYPE: int | None | VariableType DEFAULT: None

lifecycle_stage

TYPE: str | None | VariableType DEFAULT: None

name

Name of MLflow experiment. It must be an absolute path within the Databricks workspace, e.g. /Users/<some-username>/my-experiment. For more information about changes to experiment naming conventions, see mlflow docs

TYPE: str | VariableType

tags

Tags for the MLflow experiment

TYPE: list[MlflowExperimentTags] | None | VariableType DEFAULT: None

timeouts

TYPE: MlflowExperimentTimeouts | None | VariableType DEFAULT: None

trace_location

Unity Catalog location where the experiment's traces are stored. Cannot be changed after the experiment is created; changing it forces replacement of the experiment. This block consists of the following fields:

TYPE: MlflowExperimentTraceLocation | None | VariableType DEFAULT: None

LAKTORY DESCRIPTION
access_controls

Access controls list

TYPE: list[AccessControl | VariableType] | VariableType DEFAULT: []

ATTRIBUTE DESCRIPTION
additional_core_resources
  • permissions

TYPE: list

additional_core_resources property ¤

  • permissions

laktory.models.resources.databricks.mlflowexperiment.MLflowExperimentLookup ¤

Bases: ResourceLookup

PARAMETER DESCRIPTION
name

Name (path) of the MLflow experiment

TYPE: str | VariableType


laktory.models.resources.databricks.mlflowexperiment.MlflowExperimentTags ¤

Bases: BaseModel

PARAMETER DESCRIPTION
key

TYPE: str | None | VariableType DEFAULT: None

value

TYPE: str | None | VariableType DEFAULT: None


laktory.models.resources.databricks.mlflowexperiment.MlflowExperimentTimeouts ¤

Bases: BaseModel


laktory.models.resources.databricks.mlflowexperiment.MlflowExperimentTraceLocation ¤

Bases: BaseModel

PARAMETER DESCRIPTION
uc_trace_location

The Unity Catalog storage location. This block consists of the following fields:

TYPE: MlflowExperimentTraceLocationUcTraceLocation | None | VariableType DEFAULT: None


laktory.models.resources.databricks.mlflowexperiment.MlflowExperimentTraceLocationUcTraceLocation ¤

Bases: BaseModel

PARAMETER DESCRIPTION
catalog

Name of the Unity Catalog catalog

TYPE: str | VariableType

effective_table_prefix

(Computed) The trace-table prefix actually in effect: table_prefix if it was set on creation, otherwise the server-generated default

TYPE: str | None | VariableType DEFAULT: None

schema_

Name of the Unity Catalog schema within catalog

TYPE: str | VariableType

table_prefix

Prefix for the generated trace tables (named {catalog}.{schema}.{table_prefix}_otel_*). If omitted, the server generates a default prefix derived from the experiment ID; the field then stays empty and the resolved value is available in effective_table_prefix

TYPE: str | None | VariableType DEFAULT: None