Once you start logging assets, you can manage them seamlessly through the API or the app to keep your data science projects organized.
Update iteration status
Once you start an iteration in the API, its status automatically changes to "In progress." Once you are complete, you can update your iteration status by marking it complete.
Once an iteration is complete, you cannot reorganize the assets in the App. To reorganize, change the iteration status back to In Progress in the app.
iteration.complete()
Full example:
import vecticefrom vectice import Modelconnect = vectice.connect(api_token="your-api-key")#Paste your API key# Connect to your project phase using your phase IDphase = connect.phase("PHA-XXX")#You can fetch the relevant phase ID from your chosen Vectice project in the app.# Create or get an iterationiteration = phase.create_or_get_current_iteration()# Define your model for logging to Vecticemodel =Model(metrics, properties, attachments, predictor)# Log your model to Vectice under the 'Model Used' section.iteration.log(my_model, section="Model Used")# Iteration is completediteration.complete()
To update an iteration in the Vectice Web App
Go to your phase iteration
Select the dropdown under Iteration status
Choose your updated status
Create sections
Sections in Vectice function like headers, helping you identify and organize assets. This improves how you access and manage datasets, models, notes, and graphs within your projects.
To define a section to organize your assets using the Vectice API...
# import and connect to Vecticeimport vecticefrom vectice import Modelconnect = vectice.connect(api_token="your-api-key")#Paste your API key# Connect to your project phase using your phase IDphase = connect.phase("PHA-XXX")#You can fetch the relevant phase ID from your chosen Vectice project in the app.# Create or get an iterationiteration = phase.create_or_get_current_iteration()# Define your model for logging to Vecticemodel =Model(metrics, properties, attachments, predictor)# Define a section by using the 'section' param and assigning a name# to log your model to Vectice under the 'Model Used' section.iteration.log(my_model, section="Model Used")
To define a section to organize your assets inside the Vectice Web App...
Go to your selected Project and Phase
Select the Iteration that has the assets you want to organize
Click Create section
Once the section is created, drag and drop your assets to the correct section
Delete Sections
You can delete sections in the Web App by selecting the menu button next to the section name and selecting Delete Section. If this section has assets, they will be moved to the default section for unassigned assets.
Move assets across sections in App
You can customize sections to fit your unique needs (e.g., organize assets, outline your workflow, etc.).
Drag and drop assets between sections to rearrange them as you like.
Delete assets in a section
You can delete assets within a specified section of the iteration using the API: