Skip to main content
Defines the complete schema structure for a model’s input data. ModelSchema contains the specification of all columns that a model expects to receive, including their data types, constraints, and metadata. This schema is used by Fiddler for data validation, monitoring, and analysis purposes. The schema acts as a contract between your model and Fiddler, ensuring that incoming data conforms to expected formats and enabling proper drift detection, data quality monitoring, and other features.

Examples

Creating a model schema:
Accessing columns by name:
Adding a new column:
Removing a column:

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

schema_version

Schema version

columns

List of columns

getitem()

Get column by name

Returns

Column

setitem()

Set column by name

delitem()

Delete column by name