Create a Project and Onboard a Model for Observation
Last updated
Last updated
© 2024 Fiddler Labs, Inc.
A project helps organize models under observation and serves as the authorization unit to manage access to your models. To onboard a model to Fiddler, you need to have a project to associate it with. Once Fiddler's Python client is connected to your environment, you can either create a new project or use an existing one to onboard your model.
Using the Python client, you can create a project by calling the Project object's create function after setting the desired project name.
You should now see the newly created project on the Projects page in the Fiddler UI.
Using an existing project, you may list all the projects that you are authorized to view.
To onboard a model you need to define a ModelSpec and optionally a Model Task. If you do not specify a model task during Model creation it can be set later or left unset.
A ModelSpec object defines what role each column of your inference data serves in your model.
Fiddler supports five column roles:
Inputs (features),
Outputs (predictions),
Targets (ground truth labels),
Metadata (additional information passed along with the inference)
Custom features (additional information that Fiddler should generate like embeddings or enrichments)
Fiddler supports a variety of model tasks. Create a ModelTask
object and an additional ModelTaskParams
object to specify the ordering of labels. For a detailed breakdown of all supported model tasks, click here.
Onboard the model schema to Fiddler by passing in:
the data sample dataframe, called sample_df
below
the ModelSpec
object
the ModelTask
and ModelTaskParams
objects
the event/inference ID column and event/inference timestamp columns
Depending on the input size this step might take a moment to complete. It is not a local operation, but requires uploading the sample dataframe to the Fiddler HTTP API.
Schema inference is just a helping hand. The resulting schema needs human review and potentially some edits, as documented in the section titled Customizing your Model Schema.
After making sure the schema looks good, the model can be onboarded with the following API call: