Deploying Models
View AI includes a ModelSchemaManager
class designed for robust data validation and schema management.
Understanding Model Schemas
This is intended for data scientists and developers who need robust data validation and schema management in machine learning projects.
The ModelSchemaManager
class provides functionalities to:
Load and save schemas from/to files or API endpoints.
Update schema configurations, such as categories for categorical fields or ranges for numerical fields.
Validate incoming data against the schema.
Deploy models with the associated schemas using the ViewAI platform.
Initialize Manager
Creating a schema
Loading a schema
Validation Rules
Extract validation rules from the loaded schema to apply to incoming data. These rules ensure data conforms to the model’s requirements.
What Rules Are Created:
Data type checks (e.g., int, float, str).
Range checks for numerical fields.
Category membership validation for categorical fields, including handling of new allowed categories.
Publish
Deploy a model with or without an explicit schema:
Last updated
Was this helpful?