Ciroc0 commited on
Commit
64ef124
·
1 Parent(s): a86c799

Refresh predictions dataset files

Browse files
Files changed (1) hide show
  1. README.md +86 -100
README.md CHANGED
@@ -1,100 +1,86 @@
1
- ---
2
- license: cc0-1.0
3
- tags:
4
- - weather
5
- - aarhus
6
- - denmark
7
- - predictions
8
- - forecast
9
- - machine-learning
10
- ---
11
-
12
- # DMI Aarhus Predictions
13
-
14
- Live ML-vejrprognoser for Aarhus, Danmark. Indeholder både aktuelle 48-timers predictions og verificeret historik.
15
-
16
- ## Filer
17
-
18
- | Fil | Beskrivelse | Opdateret af |
19
- |-----|-------------|--------------|
20
- | `predictions_latest.parquet` | Nuværende 48-timers predictions | dmi-collector |
21
- | `frontend_snapshot.json` | Frontend-optimeret JSON snapshot | dmi-collector |
22
-
23
- ## Opdateringsfrekvens
24
-
25
- | Fil | Frekvens | Trigger |
26
- |-----|----------|---------|
27
- | `predictions_latest.parquet` | Hver 3. time | `generate_predictions()` scheduler |
28
- | `predictions_latest.parquet` | Hver time | `verify_predictions()` tilføjer actuals |
29
- | `frontend_snapshot.json` | Efter hver ændring | Automatisk ved upload |
30
-
31
- ## Schema: predictions_latest.parquet
32
-
33
- | Kolonne | Type | Beskrivelse |
34
- |---------|------|-------------|
35
- | `target_timestamp` | datetime | Tidspunkt der forudsiges |
36
- | `reference_time` | datetime | Hvornår forecast blev genereret |
37
- | `lead_time_hours` | int | Timer mellem reference og target |
38
- | `lead_bucket` | string | 1-6, 7-12, 13-24, 25-48 |
39
- | `prediction_made_at` | datetime | Hvornår prediction blev lavet |
40
- | `city` | string | Altid "aarhus" |
41
- | `verified` | bool | Om prediction er verificeret |
42
- | `dmi_temperature_2m_pred` | float | DMI temperatur prognose |
43
- | `dmi_windspeed_10m_pred` | float | DMI vindhastighed prognose |
44
- | `dmi_windgusts_10m_pred` | float | DMI vindstød prognose |
45
- | `dmi_precipitation_probability_pred` | float | DMI regnsandsynlighed |
46
- | `dmi_precipitation_pred` | float | DMI regnmængde |
47
- | `ml_temp` | float | ML temperatur prediction |
48
- | `ml_wind_speed` | float | ML vindhastighed prediction |
49
- | `ml_wind_gust` | float | ML vindstød prediction |
50
- | `ml_rain_prob` | float | ML regnsandsynlighed (0-1) |
51
- | `ml_rain_amount` | float | ML regnmængde |
52
- | `actual_temp` | float | Observeret temperatur (hvis verificeret) |
53
- | `actual_wind_speed` | float | Observeret vindhastighed (hvis verificeret) |
54
- | `actual_wind_gust` | float | Observeret vindstød (hvis verificeret) |
55
- | `actual_precipitation` | float | Observeret nedbør (hvis verificeret) |
56
-
57
- ## Schema: frontend_snapshot.json
58
-
59
- ```json
60
- {
61
- "location": { "name": "Aarhus", "timezone": "Europe/Copenhagen" },
62
- "generatedAt": "2026-03-10T22:00:00+01:00",
63
- "targetLabels": { "temperature": "Temperatur", ... },
64
- "explanations": { "forecast": "...", "performance": "...", "sources": "..." },
65
- "targetStatus": { "temperature": { "hasActiveModel": true, ... }, ... },
66
- "current": { "temp": 5.2, "windSpeed": 3.1, ... },
67
- "forecast": [ { "timestamp": "...", "effectiveTemp": 5.2, ... }, ... ],
68
- "history": { "temperature": [...], "wind": [...], "rain": [...] },
69
- "verification": { "rmseDmi": 1.2, "rmseMl": 0.9, "winRate": 65.3, ... },
70
- "leadBuckets": [ { "bucket": "1-6", "improvementPct": 12.5, ... }, ... ],
71
- "featureImportance": [ { "feature": "dmi_temperature_2m_pred", "importance": 0.45 }, ... ],
72
- "modelInfo": { "trainedAt": "...", "trainingSamples": 1922, ... },
73
- "alerts": [ { "type": "wind", "severity": "warning", ... }, ... ]
74
- }
75
- ```
76
-
77
- ## Brug
78
-
79
- Dette dataset bruges af:
80
- - **dmi-vs-ml-dashboard**: Visualiserer live predictions og historik
81
- - **Vercel Frontend**: Læser `frontend_snapshot.json` direkte
82
-
83
- ## Verificering
84
-
85
- Predictions verificeres automatisk:
86
- - Hver time: Nye actuals matcher med gamle predictions
87
- - Ved startup: Hvis forsinket, catch-up på manglende verificeringer
88
-
89
- ## Lokation
90
-
91
- Aarhus, Danmark (56.1567°N, 10.2108°E)
92
-
93
- ## Model System
94
-
95
- Predictions genereres ved at kombinere:
96
- 1. Rå DMI forecast fra Open-Meteo
97
- 2. ML-korrektioner fra aktive modeller (hvis tilgængelige)
98
- 3. Fallback til DMI hvis ingen aktiv ML-model
99
-
100
- Se `dmi-aarhus-weather-data` for model detaljer.
 
1
+ ---
2
+ license: cc-by-4.0
3
+ tags:
4
+ - weather
5
+ - aarhus
6
+ - denmark
7
+ - predictions
8
+ - forecast
9
+ - machine-learning
10
+ ---
11
+
12
+ # DMI Aarhus Predictions
13
+
14
+ Prediction and frontend contract dataset for the Aarhus weather pipeline. Maintained by `Ciroc0`.
15
+
16
+ ## Primary files
17
+
18
+ | File | Purpose | Produced by |
19
+ | --- | --- | --- |
20
+ | `predictions_latest.parquet` | Current future + verified prediction store | `dmi-collector` |
21
+ | `frontend_snapshot.json` | Primary integration contract for the Vercel frontend | `dmi-collector` |
22
+
23
+ ## Compatibility files
24
+
25
+ | File | Status | Notes |
26
+ | --- | --- | --- |
27
+ | `predictions.parquet` | Legacy | Still read by compatibility code |
28
+ | `history_snapshot.json` | Legacy | Only used by older frontend fallback logic |
29
+
30
+ ## Update pattern
31
+
32
+ - `predictions_latest.parquet` is rewritten on scheduled prediction runs
33
+ - verification updates actual columns once the target hour is in the past
34
+ - `frontend_snapshot.json` is regenerated after prediction and verification writes
35
+
36
+ ## Schema highlights for `predictions_latest.parquet`
37
+
38
+ - `target_timestamp`
39
+ - `reference_time`
40
+ - `lead_time_hours`
41
+ - `lead_bucket`
42
+ - `prediction_made_at`
43
+ - `city`
44
+ - `verified`
45
+ - `dmi_temperature_2m_pred`
46
+ - `dmi_windspeed_10m_pred`
47
+ - `dmi_windgusts_10m_pred`
48
+ - `dmi_precipitation_probability_pred`
49
+ - `dmi_precipitation_pred`
50
+ - `ml_temp`
51
+ - `ml_wind_speed`
52
+ - `ml_wind_gust`
53
+ - `ml_rain_prob`
54
+ - `ml_rain_amount`
55
+ - `actual_temp`
56
+ - `actual_wind_speed`
57
+ - `actual_wind_gust`
58
+ - `actual_precipitation`
59
+ - `actual_rain_event`
60
+ - `actual_rain_amount`
61
+
62
+ ## Snapshot contract
63
+
64
+ `frontend_snapshot.json` is the main public-facing contract and contains:
65
+
66
+ - location metadata
67
+ - generated timestamp
68
+ - target labels and explanations
69
+ - current weather block
70
+ - 48-hour forecast rows
71
+ - historical backtest payload
72
+ - verification metrics
73
+ - lead-bucket summary
74
+ - feature importance
75
+ - model info
76
+ - alert rows
77
+
78
+ ## Attribution
79
+
80
+ This dataset is released under `CC BY 4.0`.
81
+
82
+ Please preserve attribution to:
83
+
84
+ - `Ciroc0`
85
+ - `Open-Meteo - https://open-meteo.com`
86
+ - `DMI / DMI HARMONIE`