dataeval.types.MetadataJson¶
- class dataeval.types.MetadataJson¶
Top-level schema for a
metadata.jsonsidecar file.A single file may carry a
datasetblock, amodelblock, or both — e.g. a model fine-tuned on a specific dataset can be described in one file. Theprovenancefield reusesExecutionMetadataso an evaluator can stamp the file with its ownoutput.meta()record.- provenance¶
Provenance record for the producing entity. Defaults to a record built at construction time for
dataeval.types.MetadataJson.- Type:¶
- dataset¶
Dataset description, when applicable.
- Type:¶
DatasetInfo or None
- extractor¶
Feature extractor description, when applicable. An extractor may or may not be tied to a model (
FlattenExtractorhas none), so this is a sibling ofmodelrather than nested under it.- Type:¶
ExtractorInfo or None
Examples
>>> from dataeval.types import DatasetInfo, MetadataJson >>> doc = MetadataJson(dataset=DatasetInfo(name="my-ds")) >>> doc.model_dump_json() >>> restored = MetadataJson.model_validate_json(payload)