mostlyright.weather.label
weather.label.* — the .label.-registered weather spine FACTORIES (04).
A spine is the primitive; a LABEL is a spine FACTORY over the SAME domain
constructor (weather.days()). At decision time there is no label, so serving uses
a bare spine; training uses a .label. factory built on that same constructor —
so the settlement-calendar logic is minted in ONE place and research/live cannot
drift (the skew guard).
cli(entity, from_date, to_date)— TWO POSITIONAL DATES (R-13). Builds onweather.days()and attaches y columns byte-identical to the shipped cli recipe (apply_named_recipe— reached through the byte-consistency oracledataset(label="cli")). y columns keep their native names (cli_high_f,cli_low_f,cli_report_type).daily_extremes(entity, from_date, to_date)— TWO POSITIONAL DATES. Wrapscompose_daily_extremes_label(the WU/NOAA-WRH extremes recipe Polymarket resolves on) directly; y columns keep their nativedaily_extremes_*names.
Both register via registry.label() under weather.label.cli /
weather.label.daily_extremes (the .label. invariant: registering either as
a SOURCE raises). On a mixed-venue LIST spine the recipe resolves PER STATION.
Threat (firewall + parity): the factories WRAP the byte-stable recipes the climate dedup + the WU/NOAA-WRH precision path are untouched, and CWOP is NEVER a label source. Threat (universe leakage): the factory mints the PIT entity universe for the stations the caller names; PIT-correct rolling-feature transforms are OUT of scope.
Functions
Section titled “Functions”cli(station, from_date, to_date, *[, timezone]) | The cli settlement LABEL spine (Kalshi NHIGH/NLOW ground truth). |
|---|---|
daily_extremes(station, from_date, to_date, *) | The daily_extremes settlement LABEL spine (Polymarket WU/NOAA-WRH ground truth). |
mostlyright.weather.label.cli(station, from_date, to_date, , timezone=None)
Section titled “mostlyright.weather.label.cli(station, from_date, to_date, , timezone=None)”The cli settlement LABEL spine (Kalshi NHIGH/NLOW ground truth).
Two positional dates (inclusive ends). Builds on weather.days() and attaches
cli_* y columns byte-identical to the shipped cli recipe. Mints the PIT
entity universe for the named station(s); PIT-correct rolling-feature transforms
are OUT of scope (computed inside sources or by users post-align).
- Return type:
DataFrame - Parameters:
mostlyright.weather.label.daily_extremes(station, from_date, to_date, , timezone=None)
Section titled “mostlyright.weather.label.daily_extremes(station, from_date, to_date, , timezone=None)”The daily_extremes settlement LABEL spine (Polymarket WU/NOAA-WRH ground truth).
Two positional dates (inclusive ends). Wraps compose_daily_extremes_label and
attaches daily_extremes_* y columns byte-identical to the shipped recipe.
Mints the PIT entity universe for the named station(s); PIT-correct
rolling-feature transforms are OUT of scope.