boilercv_pipeline.models.data#

Output data model.

Submodules#

Package Contents#

Classes#

Dfs

Data frames.

Plots

Plots.

Data

Data frame and plot outputs.

API#

class boilercv_pipeline.models.data.Dfs(
/,
**data: typing.Any,
)#

Bases: pydantic.BaseModel

Data frames.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

src: pandas.DataFrame#

‘Field(…)’

Source data for this stage.

dst: pandas.DataFrame#

‘Field(…)’

Destination data for this stage.

class boilercv_pipeline.models.data.Plots(
/,
**data: context_models.types.Data,
)#

Bases: boilercv_pipeline.models.path.BoilercvPipelineContextStore

Plots.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config#

‘get_boilercv_pipeline_config(…)’

classmethod dvc_validate_plot(
figure: matplotlib.figure.Figure,
info: boilercv_pipeline.sync_dvc.types.DvcValidationInfo,
) matplotlib.figure.Figure#

Append plot name for dvc.yaml.

class boilercv_pipeline.models.data.Data(
/,
**data: context_models.types.Data,
)#

Bases: boilercv_pipeline.models.path.BoilercvPipelineContextStore, typing.Generic[boilercv_pipeline.models.data.types.Dfs_T, boilercv_pipeline.models.data.types.Plots_T]

Data frame and plot outputs.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config#

‘get_boilercv_pipeline_config(…)’

dfs: boilercv_pipeline.models.data.types.Dfs_T#

‘Field(…)’

plots: boilercv_pipeline.models.data.types.Plots_T#

‘Field(…)’