How To Attach An Input Example#
Introduction#
In this guide you will learn how to attach an input example to a model. An input example is simply an instance of a valid model input. Attaching an input example to your model will give other users a better understanding of what data it expects.
Code#
Step 1: Connect to Hopsworks#
Step 2: Generate an input example#
Generate an input example which corresponds to a valid input to your model. Currently we support pandas.DataFrame, pandas.Series, numpy.ndarray, list to be passed as input example.
Step 3: Set input_example parameter#
Set the input_example parameter in the create_model function and call save() to attaching it to the model and register it in the registry.