Iterations
Iteration ¶
Iteration(
id, index, phase, status=IterationStatus.NotStarted
)
Represent a Vectice iteration.
Iterations reflect the model development and test cycles completed by data scientists until a fully functional algorithm is ready for deployment. Each iteration contains the sequence of steps defined at the Phase and acts as a guardrail for data scientists to provide their updates.
Typical usage example:
my_iteration = my_phase.iteration()
my_iteration.step_cleaning = my_dataset
# you can append assets of the same types (datasets/models) with +=
my_iteration.step_cleaning += my_other_dataset
my_iteration.step_model = my_model
my_iteration.step_model += my_other_model
If steps are added to a phase after iterations have been created and completed, these steps won't appear in these iterations.
📁 iteration 1
├── 📄 step 1
├── 📄 step 2
└── 📄 step 3
Phases and Steps Definitions are created in the Vectice App, Iterations are created from the Vectice Python API.
To create a new iteration:
my_iteration = my_phase.iteration()
Vectice users shouldn't need to instantiate Iterations manually, but here are the iteration parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The iteration identifier. |
required |
index |
int
|
The index of the iteration. |
required |
phase |
Phase
|
The project to which the iteration belongs. |
required |
status |
IterationStatus
|
The status of the iteration. |
IterationStatus.NotStarted
|
Source code in src/vectice/models/iteration.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
completed
property
¶
completed: bool
Whether this iteration is completed.
Returns:
Type | Description |
---|---|
bool
|
Whether the iteration is completed. |
connection
property
¶
connection: Connection
The connection to which this iteration belongs.
Returns:
Type | Description |
---|---|
Connection
|
The connection to which this iteration belongs. |
id
writable
property
¶
id: int
index
property
¶
index: int
model
writable
property
¶
model: Model | None
modeling_dataset
writable
property
¶
modeling_dataset: None
phase
property
¶
phase: Phase
The phase to which this iteration belongs.
Returns:
Type | Description |
---|---|
Phase
|
The phase to which this iteration belongs. |
project
property
¶
project: Project
The project to which this iteration belongs.
Returns:
Type | Description |
---|---|
Project
|
The project to which this iteration belongs. |
properties
property
¶
properties: dict
The iteration's identifier and index.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing the |
step_names
property
¶
step_names: list[str]
steps
property
¶
steps: list[Step]
workspace
property
¶
workspace: Workspace
The workspace to which this iteration belongs.
Returns:
Type | Description |
---|---|
Workspace
|
The workspace to which this iteration belongs. |
cancel ¶
cancel()
Cancel the iteration by abandoning all unfinished steps.
Source code in src/vectice/models/iteration.py
347 348 349 350 351 352 |
|
complete ¶
complete()
Mark the iteration as completed.
Source code in src/vectice/models/iteration.py
354 355 356 357 358 359 360 361 |
|
list_steps ¶
list_steps()
Prints a list of steps belonging to the iteration in a tabular format, limited to the first 10 items. A link is provided to view the remaining steps.
Returns:
Type | Description |
---|---|
None
|
None |
Source code in src/vectice/models/iteration.py
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
|
step ¶
step(step)
Get a step by name.
Step names are configured for a phase by the Vectice administrator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
step |
str
|
The name of the step |
required |
Returns:
Type | Description |
---|---|
Step
|
A step. |
Source code in src/vectice/models/iteration.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
|