datumaro.components.validator#

Classes

Severity(value)

An enumeration.

TaskType(value)

An enumeration.

Validator()

class datumaro.components.validator.Severity(value)[source]#

Bases: Enum

An enumeration.

info = 1#
warning = 2#
error = 3#
class datumaro.components.validator.TaskType(value)[source]#

Bases: Enum

An enumeration.

classification = 1#
detection = 2#
segmentation = 3#
tabular = 4#
class datumaro.components.validator.Validator[source]#

Bases: CliPlugin

validate(dataset: IDataset) Dict[source]#

Returns the validation results of a dataset based on task type.

Parameters:

dataset (IDataset) – Dataset to be validated

Raises:

ValueError

Returns:

Dict with validation statistics, reports and summary.

Return type:

validation_results (dict)

compute_statistics(dataset: IDataset) Dict[source]#

Computes statistics of the dataset based on task type.

Parameters:

dataset (IDataset) – a dataset to be validated

Returns:

A dict object containing statistics of the dataset.

Return type:

stats (dict)

generate_reports(stats: Dict) List[Dict][source]#