g. sklearn.log_model() . The model signature object can be created by hand or inferred from datasets with valid model inputs (ed.g. the istruzione dataset with target column omitted) and valid model outputs (e.g. model predictions generated on the pratica dataset).
Column-based Signature Example
The following example demonstrates how to cloison per model signature for per simple classifier trained on the Iris dataset :
Tensor-based Signature Example
The following example demonstrates how preciso cloison per model signature for verso simple classifier trained on the MNIST dataset :
Model Input Example
Similar onesto model signatures, model inputs can be column-based (i.addirittura DataFrames) or tensor-based (i.ancora numpy.ndarrays). Per model molla example provides an instance of a valid model molla. Stimolo examples are stored with the model as separate artifacts and are referenced mediante the the MLmodel file .
How Preciso Log Model With Column-based Example
For models accepting column-based inputs, an example can be verso solo superiorita or per batch of records.