Context#
- class Context[source]#
Contains all the data + properties the user has passed to a check/suite, and validates it seamlessly.
- Parameters
- trainOptional[VisionData] , default: None
VisionData object, representing data the model was fitted on
- testOptional[VisionData] , default: None
VisionData object, representing data the models predicts on
- random_stateint
A seed to set for pseudo-random functions
- with_displaybool , default: True
flag that determines if checks will calculate display (redundant in some checks).
- __init__(train: Optional[VisionData] = None, test: Optional[VisionData] = None, random_state: int = 42, with_display: bool = True)[source]#
- __new__(*args, **kwargs)#
Attributes
Return the common task type of the datasets. |
|
Return test if exists, otherwise raise error. |
|
Return train if exists, otherwise raise error. |
|
Return the with_display flag. |
Methods
|
Assert task_type matching given types. |
|
Run final processing on a check result which includes validation and conditions processing. |
|
Return the relevant VisionData by given kind. |
Return whether there is test dataset defined. |