Models in Nucleus represent actual models in your inference pipeline. There are two ways to create models in Nucleus:
- Shell Models: These are empty model i.e. no associated model artifacts. Shell models can be used to upload model predictions into Nucleus. Therefore, these are most relevant if you are running inference on your end and only want to have the inference results available in Nucleus.
- Hosted Models: These are real models with associated artifacts e.g. a trained tensorflow model. Hosted models are used when you want to host your models and run inference over a chosen dataset in Nucleus. The output predictions are also then automatically associated with the corresponding hosted Model.
Shell Model
When creating aShell Model, you will need to provide a name and a unique reference ID for the model. You can also attach arbitrary metadata, e.g. timestamp of creation in Nucleus.
Prediction in Nucleus is associated with exactly one Model and one Dataset. Under the hood, Nucleus defines a “model run” as the linkage between a Model and Dataset based on cross-referenced Predictions. Functionally, when interacting with the Nucleus API through the Python client, you can interchangeably use model_id (starts with prj_) and model_run_id (starts with run_); these can both be found in the Models page in the dashboard, and in the dashboard URL when filtering/displaying specific models.
If you already have existing Models in Nucleus, you can list them all or retrieve a certain model by its ID.