archaeo_super_prompt.types.structured_data
source module archaeo_super_prompt.types.structured_data
Types related to the wanted structured data in the dataset.
Classes
-
OutputStructuredDataSchema — Schema of the intervention target metadata in the dataset.
-
FeaturedOutputStructureDataSchema — New structure data schema for the new models, with some fields that are normalized.
-
DatasetAnswerSchema — Schema of a row in the answer dataframe loadable from the dataset.
Functions
-
outputStructuredDataSchema_itertuples — Type-safe wrapper of DataFrame.itertuples.
source class OutputStructuredDataSchema()
Bases : pa.DataFrameModel
Schema of the intervention target metadata in the dataset.
source class FeaturedOutputStructureDataSchema()
Bases : OutputStructuredDataSchema
New structure data schema for the new models, with some fields that are normalized.
source class DatasetAnswerSchema()
Bases : NamedTuple
Schema of a row in the answer dataframe loadable from the dataset.
source outputStructuredDataSchema_itertuples(df: DataFrame[FeaturedOutputStructureDataSchema])
Type-safe wrapper of DataFrame.itertuples.