Update and Version Models
This topic shows how to update and version existing models in the C3 AI Model Registry using C3 provided APIs. For more information on an overview for Model Registry, see Overview of Model Registry in C3 AI Studio.
Update and version an existing model
ModelRegistry automatically creates versioned updates to existing models in the Model Registry.
Use ModelRegistry.registerMlPipe with the uri of an existing ModelRegistry.Entry to create a new version of the existing entry.
JavaScript
# Create the first version of the model
entry = c3.ModelRegistry.registerMlPipe(mlPipe=trained_pipeline,
uri='/model_domain/myEntryName',
description='Entry Description')
# Add a new version the ModelRegistry.Entry called `myEntryName`
entry = c3.ModelRegistry.registerMlPipe(mlPipe=trained_pipeline_2,
uri='/model_domain/myEntryName',
desc='Entry Description Updated')