pixano.datasets.dataset_features_values
ConstraintDict = Dict[TableName, List[Constraint]]
module-attribute
Dict of Constraint, by table.
Keys are table names (TableName
), and values are list of constraints (Constraint
).
Constraint(name, restricted, values)
dataclass
DatasetFeaturesValues(**data)
Bases: BaseModel
Constraints for the dataset features values.
Attributes:
Name | Type | Description |
---|---|---|
item |
ConstraintDict
|
Constraints for the dataset item table. |
views |
ConstraintDict
|
Constraints for the dataset view tables. |
entities |
ConstraintDict
|
Constraints for the dataset entity tables. |
annotations |
ConstraintDict
|
Constraints for the dataset annotation tables. |
Source code in pydantic/main.py
from_json(json_fp)
staticmethod
Load DatasetFeaturesValues from json file.