Iterative development
This guide will show data scientist how to sync their iterative development to Vectice.
In iterative development, a model is built and tested in repeated cycles. Each cycle tunes and tests the model's hyperparameters until a fully functional algorithm is ready.
We'll guide you through this process using Vectice.
Step 1: Install and configure
Install and import any packages you need for your model development, including the vectice
library. If you have not installed the vectice
library, view the Install Vectice Library guide for more details.
Once you installed and imported vectice
into your script, connect to the Vectice API.
Now that you have connected to the Vectice API and linked your script to a project, we can start an iteration.
Step 2: Retrieve a phase
To start an iteration, you must retrieve a phase. To retrieve a phase, connect using your phase ID.
Step 3: Initialize iteration
After retrieving a phase, we want to begin an iteration. We will initialize an iteration with the create_or_get_current_iteration()
method, as shown below.
Current iteration is your last updated iteration. However, if the current iteration is not writable or no iterations exist, we will create an iteration or list writable iterations. If you have multiple "In progress" iterations from the past, to not make assumptions, we will display a list of writable iterations that you can select using the {phase}.iteration("iteration name or ID")
method.
You can create several editable iterations in different phases, but each user can have only one active iteration session at a time.
Step 4: Log your assets
You can log your assets during model development, testing, and validation using simple code lines to share your progress and work artifacts.
To log your assets, use the iteration's log method as follows:
This variable asset
could be your datasets, models and code used while iterating. For more information on how to log specific assets, view the user guides linked below:
You can also use sections
to organize your assets:
The following are a few capabilities that you can utilize to add visibility into your model development.
Version Control
Vectice allows you to track versions of datasets, models, and code used in development. For datasets and models, it includes version IDs, descriptions, lineage, properties, resources, attachments, algorithms, metrics, status, and dataset types.
You can find these asset versions and details in the Vectice app under the Datasets and Models sections of the Project.
All assets are automatically versioned, making it simple to track a project's progress and compare results across different iterations.
Step 5: Complete an iteration
Once you finish an iteration, use this code to mark it as complete in Vectice in real time.
This signals that a phase or task is finished, helping track progress and letting others know it's ready for review or the next steps.
You may revisit the details of the iteration for a retrospective. If satisfied, you can summarize your outcomes or start another iteration.
Example
The above is just an example of how to perform various actions. The best practice is to have one file (or notebook) per phase of the Project.
View the Python API Reference Docs for more information on how to use Vectice API.