core.services.data.dataset.validator.utils¶
utils
¶
Functions:
Name | Description |
---|---|
get_dataset_validator |
Retrieves the appropriate validator for a given dataset. |
get_dataset_validator(dataset, fix_annotation=True)
¶
Retrieves the appropriate validator for a given dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
TBaseDataset
|
The dataset to validate. |
required |
|
bool
|
A flag to indicate whether to automatically fix errors (default is True). |
True
|
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
The validator instance or None if the dataset type is unsupported. |