MethodRequirements

MethodRequirements(
    sources=(),
    needs_consensus=True,
    needs_actuals=False,
    minimum_history=0,
)

What a method needs before it can run.

Checked when a pipeline is assembled rather than halfway through a run.

Attributes

Name Type Description
sources tuple[str, …] Source names that must be present, such as a forecaster’s.
needs_consensus bool The method compares against the consensus source.
needs_actuals bool The method scores against realised values.
minimum_history int Prior periods required before the method can run.