@Evolving public interface Model extends Auditable
Namespace
. A model is a metadata
object that represents the model artifact in ML. Users can register a model object in Gravitino
to manage the model metadata. The typical use case is to manage the model in ML lifecycle with a
unified way in Gravitino, and access the model artifact with a unified identifier. Also, with the
model registered in Gravitino, users can govern the model with Gravitino's unified audit, tag,
and role management.
The difference of Model and tabular data is that the model is schema-free, and the main property of the model is the model artifact URL. The difference compared to the fileset is that the model is versioned, and the model object contains the version information.
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
comment()
The comment of the model object.
|
int |
latestVersion()
The latest version of the model object.
|
java.lang.String |
name() |
default java.util.Map<java.lang.String,java.lang.String> |
properties()
The properties of the model object.
|
default SupportsRoles |
supportsRoles() |
default SupportsTags |
supportsTags() |
java.lang.String name()
default java.lang.String comment()
default java.util.Map<java.lang.String,java.lang.String> properties()
Users can still specify the properties in the model version for different information.
int latestVersion()
default SupportsTags supportsTags()
SupportsTags
if the model supports tag operations.java.lang.UnsupportedOperationException
- If the model does not support tag operations.default SupportsRoles supportsRoles()
SupportsRoles
if the model supports role operations.java.lang.UnsupportedOperationException
- If the model does not support role operations.