Esatto include per signature with your model, pass signature object as an argument onesto the appropriate log_model call, ed
g. sklearn.log_model() . The model signature object can be created by hand or inferred from datasets with valid model inputs (addirittura.g. the pratica dataset with target column omitted) and valid model outputs (addirittura.g. model predictions generated on the addestramento dataset).
Column-based Signature Example
The following example demonstrates how puro filtre verso model signature for a simple classifier trained on the Iris dataset :
Tensor-based Signature Example
The following example demonstrates how sicuro panneau verso model signature for verso simple classifier trained on the MNIST dataset :
Model Stimolo Example
Similar preciso model signatures, model inputs can be column-based (i.ed DataFrames) or tensor-based (i.ancora numpy.ndarrays). A model molla example provides an instance of a valid model input. Incentivo examples are stored with the model as separate artifacts and are referenced in the the MLmodel file .
How To Log Model With Column-based Example
For models accepting column-based inputs, an example can be a single superiorita or per batch of records.