Skip to content

model

mlte/context/model.py

Model implementation for MLTE context information.

Model

Bases: BaseModel

Model implementation for MLTE model identifier.

Source code in mlte/context/model.py
19
20
21
22
23
24
25
26
class Model(BaseModel):
    """Model implementation for MLTE model identifier."""

    identifier: str
    """The identifier for the model."""

    versions: List[Version] = []
    """A collection of the model versions."""

identifier instance-attribute

The identifier for the model.

versions = [] class-attribute instance-attribute

A collection of the model versions.

Version

Bases: BaseModel

Model implementation for MLTE model version.

Source code in mlte/context/model.py
12
13
14
15
16
class Version(BaseModel):
    """Model implementation for MLTE model version."""

    identifier: str
    """The identifier for the model version."""

identifier instance-attribute

The identifier for the model version.