dataeval.data.merge_datasets¶
- dataeval.data.merge_datasets(*datasets)¶
Concatenate datasets that share a label vocabulary into one dataset view.
Returns a lazy, read-only
AnnotatedDatasetthat indexes through the given datasets in order. All datasets must already share the sameindex2labelso their integer labels denote the same classes — usedataeval.data.Conformwithdataeval.data.Relabelto conform datasets to a common reference vocabulary first.- Parameters:¶
- *datasets : AnnotatedDataset¶
Two or more datasets to merge. Each must expose an
index2labelin its metadata, and all must be equal.
- Returns:¶
A concatenated view whose
metadatacarries the sharedindex2label.- Return type:¶
- Raises:¶
ValueError – If no datasets are given, or their
index2labelmappings differ.
See also
dataeval.data.ConformConform a dataset to a reference vocabulary.