Models
Model ¶
Model(
library,
technique,
metrics=None,
properties=None,
name=None,
attachments=None,
predictor=None,
derived_from=None,
inputs=None,
)
Represent a wrapped model.
Iteration steps that represent models require a wrapped model. Wrapped models present Vectice with a learned predictor and appropriate metadata about that predictor in order to summarize the model in views of the iteration.
A Vectice Model is a wrapped predictor suitable for assignment to a Vectice Step.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
library |
str
|
The library used to generate the model. |
required |
technique |
str
|
The modeling technique used. |
required |
metrics |
dict[str, int] | list[Metric] | Metric | None
|
A dict for example |
None
|
properties |
dict[str, str] | dict[str, int] | list[Property] | Property | None
|
A dict, for example |
None
|
name |
str | None
|
The model name. If None, will be auto-generated based on the library and technique. |
None
|
attachments |
str | list[str] | None
|
Path of a file that will be attached to the step along with the predictor. |
None
|
predictor |
Any
|
The predictor. |
None
|
derived_from |
list[int] | None
|
List of dataset version ids to link as lineage. |
None
|
inputs |
list[int] | None
|
Deprecated. Use |
None
|
Source code in src/vectice/models/model.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
attachments
writable
property
¶
attachments: list[str] | None
derived_from
property
¶
derived_from: Any
The datasets from which this model is derived.
Returns:
Type | Description |
---|---|
Any
|
The datasets from which this model is derived. |
inputs
property
¶
inputs: Any
Deprecated. Use derived_from
instead.
Returns:
Type | Description |
---|---|
Any
|
The datasets from which this model is derived. |
library
writable
property
¶
library: str
The name of the library used to generate the model.
Returns:
Type | Description |
---|---|
str
|
The name of the library used to generate the model. |
metrics
writable
property
¶
metrics: list[Metric] | None
name
writable
property
¶
name: str
predictor
writable
property
¶
predictor: Any
properties
writable
property
¶
properties: list[Property] | None