2. Register new model

The first step to integrate your model is to register it.
Model registration is a super easy step, as Superwise does not require the model artifact.
To register a new model, you will just need to supply basic metadata about the model.

🚧

Pay attention!

After creating a model for a particular project, there is no way to change its location

Registering a new model via the console

600

Registering a new model via the SDK

📘

Install the SDK

To install and get started with our SDK visit our SDK docs

import os
from superwise import Superwise
from superwise.models.model import Model

os.environ['SUPERWISE_CLIENT_ID'] = 'REPLACE_WITH_YOUR_CLIENT'
os.environ['SUPERWISE_SECRET'] = 'REPLACE_WITH_YOUR_SECRET'

sw = Superwise() 

diamond_model = Model(
    name="Diamond Model",
    description="Regression model which predict the diamond price"
    project_id=project.id
)

diamond_model = sw.model.create(diamond_model)
print(f"New task Created - {diamond_model.id}")