AnchoredEstimate

AnchoredEstimate(
    forecast_source,
    parameters=ANCHORING_2025_01,
    consensus_source=CONSENSUS_SOURCE,
)

Consensus, moved a fraction of the way toward a forecaster.

A frozen-parameter method: the coefficients were fitted elsewhere and shipped with a version, so fit has nothing to learn and cannot look ahead.

Attributes

Name Type Description
forecast_source str The source to anchor onto consensus.
parameters AnchoringParameters The versioned coefficient set to publish under.
consensus_source str The source treated as consensus.

Methods

Name Description
fit Verify the parameter set matches the panel, and learn nothing.

fit

fit(subjects)

Verify the parameter set matches the panel, and learn nothing.

Parameters

Name Type Description Default
subjects pd.DataFrame Training rows, read only to check that the sources this method needs are present. required

Returns

Name Type Description
FittedAnchoredEstimate The fitted method, carrying the parameter set it was constructed with.

Raises

Name Type Description
PanelError A source this method reads is absent from the frame.