How to add attachments

This guide will show you how to add attachments to your models.

Attachments help showcase charts or other analyses resulting from your model exploration or outputs. To add an attachment to upload to Vectice, utilize the attachment parameter in the Model method to point to the local file.

import vectice

model = vectice.Model(name="Random Forest - Unit Sales", library="scikit-learn", technique="Random Forest", metrics=metrics, attachments=["attachment.png", "attachment2.png"])

Then assign the model to your current phase iteration to upload to the Vectice UI.

iteration.step_register_model = model

For an in-depth example, view the code example found in the Iterative Development guide.

Last updated