metadata
metadata
¶
Classes:
| Name | Description |
|---|---|
EntityReport |
|
TypeReport |
Information about scalar types of values within a given field. |
FieldMetadataReport |
|
EntitySummaryReport |
Aggregate entity metrics by label. |
DatasetMetadataReport |
Represents report with model_metadata about the dataset. |
Functions:
| Name | Description |
|---|---|
convert_to_report |
Converts internal model_metadata object to the report. |
EntityReport
pydantic-model
¶
TypeReport
pydantic-model
¶
FieldMetadataReport
pydantic-model
¶
Bases: ReportBaseModel
Fields:
-
name(str) -
count(int) -
approx_distinct_count(int) -
missing_count(int) -
labels(list[str]) -
attributes(list[str]) -
entities(list[EntityReport]) -
types(list[TypeReport])
name
pydantic-field
¶
Name of the field. For data formats that support nesting, it's a dot delimited list of parents. E.g. "user.firstName"
count
pydantic-field
¶
Number of records that had value for this field.
approx_distinct_count
pydantic-field
¶
Approximate number of distinct values for this field.
missing_count
pydantic-field
¶
Number of records that didnt' have value for this field.
labels
pydantic-field
¶
Field-level labels for this field.
attributes
pydantic-field
¶
Attributes for this field.
entities
pydantic-field
¶
Granular information about entities detected in field's values.
types
pydantic-field
¶
Scalar types of values in this field.
EntitySummaryReport
pydantic-model
¶
Bases: ReportBaseModel
Aggregate entity metrics by label.
Fields:
-
label(str) -
fields(list[str]) -
count(int) -
approx_distinct_count(int) -
sources(list[str])
label
pydantic-field
¶
Name of the entity or label.
fields
pydantic-field
¶
List of fields the entity was seen in.
count
pydantic-field
¶
Total number of entity occurrences in the dataset by score.
approx_distinct_count
pydantic-field
¶
Approximate number of unique entity values in the dataset.
sources
pydantic-field
¶
A list of unique sources that contributed predictions to the entity summary.
DatasetMetadataReport
pydantic-model
¶
Bases: ReportBaseModel
Represents report with model_metadata about the dataset.
Fields:
-
record_count(int) -
fields(list[FieldMetadataReport]) -
entities(list[EntitySummaryReport])
convert_to_report(metadata)
¶
Converts internal model_metadata object to the report.