mostlyright.weather.label
weather.label.* — the .label.-registered weather spine factories.
A spine is the primitive; a label is a spine factory over the same domain
constructor (weather.spine.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 written in one place and
research and live cannot drift.
daily_summary(station, from_date, to_date)— two positional dates. Builds onweather.spine.daysand attaches y columns byte-identical to the shipped cli recipe (apply_named_recipe, also reached throughweather.training_table(label="daily_summary")). y columns keep their native names (daily_summary_temp_high_f,daily_summary_temp_low_f,daily_summary_report_type) — all °F.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. It carries both °F (daily_extremes_high_f/_low_f/_mean_f— the same unit as the imperial feature block) and the settlement-native °C (daily_extremes_high_c/_low_c/_mean_c, whichpolymarket.settleconsumes).
Both register via registry.label() under weather.label.cli /
weather.label.daily_extremes; registering either as a source raises. On a
mixed-venue list spine the recipe resolves per station.
The factories wrap the byte-stable recipes, so the climate dedup and the WU/NOAA-WRH precision path are unchanged, and CWOP is never a label source. Each factory mints the point-in-time entity universe for the stations the caller names; point-in-time rolling-feature transforms are out of scope.
Functions
Section titled “Functions”| Function | Description |
|---|---|
daily_extremes(station, from_date, to_date, *) | The daily_extremes settlement label spine (Polymarket WU/NOAA-WRH ground truth). |
daily_summary(station, from_date, to_date, *) | The daily-summary settlement label spine (Kalshi NHIGH/NLOW ground truth). |
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). Accepts a DateLike — an ISO
YYYY-MM-DD string, a date, or a UTC-aware datetime — like every
sibling verb. Wraps compose_daily_extremes_label and attaches
daily_extremes_* y columns byte-identical to the shipped recipe. Mints the
point-in-time entity universe for the named station(s); point-in-time
rolling-feature transforms are out of scope.
Venue calendar: for daily_extremes the local_standard_date key denotes
the venue’s DST-aware civil settlement day (the Polymarket / NOAA-WRH day,
dt.astimezone(station_tz).date()), not the Kalshi fixed-LST day. Align
your own feature source on that same civil day so a DST-boundary row’s features
and its daily_extremes_* target aggregate one 24h window. (The Kalshi
weather.label.daily_summary spine keeps the fixed-LST day.)
- Return type: pd.DataFrame
- Parameters:
mostlyright.weather.label.daily_summary(station, from_date, to_date, , timezone=None)
Section titled “mostlyright.weather.label.daily_summary(station, from_date, to_date, , timezone=None)”The daily-summary settlement label spine (Kalshi NHIGH/NLOW ground truth).
Two positional dates (inclusive ends). Accepts a DateLike — an ISO
YYYY-MM-DD string, a date, or a UTC-aware datetime — like every
sibling verb. Builds on weather.spine.days and attaches
daily_summary_* y columns byte-identical to the shipped cli recipe. Mints
the point-in-time entity universe for the named station(s); point-in-time
rolling-feature transforms are out of scope (computed inside sources or by
users after align).