hsml.model_schema #
ModelSchema #
Deprecated
ModelSchema is deprecated and will be removed in a future release of Hopsworks. Instead of it, consider using signature.create_model.
Create a schema for a model.
Deprecated: a model registered with create_model(feature_view=...) gets its input and output schema from the feature view's training dataset, and a deployment describes its requests with the deployment schema; a hand-written model schema will be removed in a future release. The default predictor still reads a legacy model schema to select the model's input columns; a DefaultPredict subclass overriding model_predict replaces that. For a model without a feature view, name its input columns with passed_features= on deploy() instead.
| PARAMETER | DESCRIPTION |
|---|---|
input_schema | Schema to describe the inputs. TYPE: |
output_schema | Schema to describe the outputs. TYPE: |