Import Model API


The Import Model API provides the users with a mechanism to import the model built using the Model Builder UI to the SDK


from razor import dlmodels
trainer = dlmodels.import_model(name='name', display=True)


Argument Description
name This is the name of the Model as defined by the user in the Model Builder UI
display A boolean attribute, that allows the user to view the code of the model imported when True.


Load a model from UI

trainer = dlmodels.import_model('iris', display=True)


Once the model is imported from UI, the user can use the model API's like fit and evaluate to perform train and infer operations respectievely