Phases
Phase ¶
Phase(
id, project, name, index, status=PhaseStatus.NotStarted
)
Represent a Vectice phase.
Phases reflect the real-life phases of the project lifecycle (i.e., Business Understanding, Data Preparation, Modeling, Deployment, etc.). The Vectice admin creates the phases of a project.
Phases let you document the goals, assets, and outcomes along with the status to organize the project, enforce best practices, allow consistency, and capture knowledge.
Phases contain definitions of steps that are performed by data-scientists in order to complete iterations.
📁 phase 1
├── 📄 step definition 1
├── 📄 step definition 2
└── 📄 step definition 3
To get a project's phase:
my_phase = my_project.phase("Business Understanding")
Iterations can then be created for this phase, to complete the phase steps:
my_origin_dataset = ...
my_iteration = my_phase.iteration()
my_iteration.step_origin_dataset = my_origin_dataset
Phases and Steps Definitions are created in the Vectice App, Iterations are created from the Vectice Python API.
See the documentation of Iterations for more information about iterations.
Vectice users shouldn't need to instantiate Phases manually, but here are the phase parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
The phase identifier. |
required |
project |
Project
|
The project to which the phase belongs. |
required |
name |
str
|
The name of the phase. |
required |
index |
int
|
The index of the phase. |
required |
status |
PhaseStatus
|
The status of the phase. |
PhaseStatus.NotStarted
|
Source code in src/vectice/models/phase.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
clean_dataset
writable
property
¶
clean_dataset: None
connection
property
¶
connection: Connection
The connection to which this phase belongs.
Returns:
Type | Description |
---|---|
Connection
|
The connection to which this phase belongs. |
iterations
property
¶
iterations: list[Iteration]
project
property
¶
project: Project
The project to which this phase belongs.
Returns:
Type | Description |
---|---|
Project
|
The project to which this phase belongs. |
properties
property
¶
properties: dict
The phase's name, id, and index.
Returns:
Type | Description |
---|---|
dict
|
A dictionary containing the |
status
property
¶
status: PhaseStatus
The phase's status.
Returns:
Type | Description |
---|---|
PhaseStatus
|
The phase's status. |
workspace
property
¶
workspace: Workspace
The workspace to which this phase belongs.
Returns:
Type | Description |
---|---|
Workspace
|
The workspace to which this phase belongs. |
iteration ¶
iteration(index=None)
Get a (possibly new) iteration.
Fetch and return an iteration by index. If no index is provided, return a new iteration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index |
int | None
|
The id of an existing iteration. |
None
|
Returns:
Type | Description |
---|---|
Iteration
|
An iteration. |
Source code in src/vectice/models/phase.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
|
list_step_definitions ¶
list_step_definitions()
Prints a list of step definitionss belonging to the phase in a tabular format, limited to the first 10 items. A link is provided to view the remaining step definitions.
Returns:
Type | Description |
---|---|
None
|
None |
Source code in src/vectice/models/phase.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
|