gravitino.client.generic_model.GenericModel¶
- class gravitino.client.generic_model.GenericModel(model_dto: ModelDTO)¶
Bases:
Model
Methods
__init__
(model_dto)audit_info
()comment
()The comment of the model object.
The latest version of the model object.
name
()Returns:
The properties of the model object.
- comment() str | None ¶
The comment of the model object. This is the general description of the model object. User can still add more detailed information in the model version.
- Returns:
The comment of the model object. None is returned if no comment is set.
- latest_version() int ¶
The latest version of the model object. The latest version is the version number of the latest model checkpoint / snapshot that is linked to the registered model.
- Returns:
The latest version of the model object.
- name() str ¶
- Returns:
Name of the model object.
- properties() dict ¶
The properties of the model object. The properties are key-value pairs that can be used to store additional information of the model object. The properties are optional.
Users can still specify the properties in the model version for different information.
- Returns:
The properties of the model object. An empty dictionary is returned if no properties are set.