Dataset Viewer
Auto-converted to Parquet Duplicate
station
large_stringclasses
12 values
pollutant
large_stringclasses
2 values
date
timestamp[us]date
2013-04-19 00:00:00
2017-01-06 00:00:00
Aotizhongxin
PM2.5
2013-06-22T00:00:00
Aotizhongxin
PM2.5
2013-06-23T00:00:00
Aotizhongxin
PM2.5
2013-06-24T00:00:00
Aotizhongxin
PM2.5
2013-06-25T00:00:00
Aotizhongxin
PM2.5
2013-06-26T00:00:00
Aotizhongxin
PM2.5
2013-06-27T00:00:00
Aotizhongxin
PM2.5
2013-06-28T00:00:00
Aotizhongxin
PM2.5
2013-06-29T00:00:00
Aotizhongxin
PM2.5
2013-06-30T00:00:00
Aotizhongxin
PM2.5
2013-07-01T00:00:00
Aotizhongxin
PM2.5
2013-07-02T00:00:00
Aotizhongxin
PM2.5
2013-07-03T00:00:00
Aotizhongxin
PM2.5
2013-07-04T00:00:00
Aotizhongxin
PM2.5
2013-07-05T00:00:00
Aotizhongxin
PM2.5
2013-07-06T00:00:00
Aotizhongxin
PM2.5
2013-07-07T00:00:00
Aotizhongxin
PM2.5
2013-07-08T00:00:00
Aotizhongxin
PM2.5
2013-07-09T00:00:00
Aotizhongxin
PM2.5
2013-07-10T00:00:00
Aotizhongxin
PM2.5
2013-07-11T00:00:00
Aotizhongxin
PM2.5
2013-07-12T00:00:00
Aotizhongxin
PM2.5
2013-07-13T00:00:00
Aotizhongxin
PM2.5
2013-07-14T00:00:00
Aotizhongxin
PM2.5
2013-07-15T00:00:00
Aotizhongxin
PM2.5
2013-07-16T00:00:00
Aotizhongxin
PM2.5
2013-07-17T00:00:00
Aotizhongxin
PM2.5
2013-07-18T00:00:00
Aotizhongxin
PM2.5
2013-07-19T00:00:00
Aotizhongxin
PM2.5
2013-07-20T00:00:00
Aotizhongxin
PM2.5
2013-07-21T00:00:00
Aotizhongxin
PM2.5
2013-07-22T00:00:00
Aotizhongxin
PM2.5
2013-07-23T00:00:00
Aotizhongxin
PM2.5
2013-07-24T00:00:00
Aotizhongxin
PM2.5
2013-07-25T00:00:00
Aotizhongxin
PM2.5
2013-07-26T00:00:00
Aotizhongxin
PM2.5
2013-07-27T00:00:00
Aotizhongxin
PM2.5
2013-07-28T00:00:00
Aotizhongxin
PM2.5
2013-07-29T00:00:00
Aotizhongxin
PM2.5
2013-07-30T00:00:00
Aotizhongxin
PM2.5
2013-07-31T00:00:00
Aotizhongxin
PM2.5
2013-08-01T00:00:00
Aotizhongxin
PM2.5
2013-08-02T00:00:00
Aotizhongxin
PM2.5
2013-08-03T00:00:00
Aotizhongxin
PM2.5
2013-08-04T00:00:00
Aotizhongxin
PM2.5
2013-08-05T00:00:00
Aotizhongxin
PM2.5
2013-08-06T00:00:00
Aotizhongxin
PM2.5
2013-08-07T00:00:00
Aotizhongxin
PM2.5
2013-08-08T00:00:00
Aotizhongxin
PM2.5
2013-08-09T00:00:00
Aotizhongxin
PM2.5
2013-08-10T00:00:00
Aotizhongxin
PM2.5
2013-08-11T00:00:00
Aotizhongxin
PM2.5
2013-08-12T00:00:00
Aotizhongxin
PM2.5
2013-08-13T00:00:00
Aotizhongxin
PM2.5
2013-08-14T00:00:00
Aotizhongxin
PM2.5
2013-08-15T00:00:00
Aotizhongxin
PM2.5
2013-08-16T00:00:00
Aotizhongxin
PM2.5
2013-08-17T00:00:00
Aotizhongxin
PM2.5
2013-08-18T00:00:00
Aotizhongxin
PM2.5
2013-08-19T00:00:00
Aotizhongxin
PM2.5
2013-08-20T00:00:00
Aotizhongxin
PM2.5
2014-09-27T00:00:00
Aotizhongxin
PM2.5
2014-09-28T00:00:00
Aotizhongxin
PM2.5
2014-09-29T00:00:00
Aotizhongxin
PM2.5
2014-09-30T00:00:00
Aotizhongxin
PM2.5
2014-10-01T00:00:00
Aotizhongxin
PM2.5
2014-10-02T00:00:00
Aotizhongxin
PM2.5
2014-10-03T00:00:00
Aotizhongxin
PM2.5
2014-10-04T00:00:00
Aotizhongxin
PM2.5
2014-10-05T00:00:00
Aotizhongxin
PM2.5
2014-10-06T00:00:00
Aotizhongxin
PM2.5
2014-10-07T00:00:00
Aotizhongxin
PM2.5
2014-10-08T00:00:00
Aotizhongxin
PM2.5
2014-10-09T00:00:00
Aotizhongxin
PM2.5
2014-10-10T00:00:00
Aotizhongxin
PM2.5
2014-10-11T00:00:00
Aotizhongxin
PM2.5
2014-10-12T00:00:00
Aotizhongxin
PM2.5
2014-10-13T00:00:00
Aotizhongxin
PM2.5
2014-10-14T00:00:00
Aotizhongxin
PM2.5
2014-10-15T00:00:00
Aotizhongxin
PM2.5
2014-10-16T00:00:00
Aotizhongxin
PM2.5
2014-10-17T00:00:00
Aotizhongxin
PM2.5
2014-10-18T00:00:00
Aotizhongxin
PM2.5
2014-10-19T00:00:00
Aotizhongxin
PM2.5
2014-10-20T00:00:00
Aotizhongxin
PM2.5
2014-10-21T00:00:00
Aotizhongxin
PM2.5
2014-10-22T00:00:00
Aotizhongxin
PM2.5
2014-10-23T00:00:00
Aotizhongxin
PM2.5
2014-10-24T00:00:00
Aotizhongxin
PM2.5
2014-10-25T00:00:00
Aotizhongxin
PM2.5
2014-10-26T00:00:00
Aotizhongxin
PM2.5
2014-10-27T00:00:00
Aotizhongxin
PM10
2015-07-10T00:00:00
Aotizhongxin
PM10
2015-07-11T00:00:00
Aotizhongxin
PM10
2015-07-12T00:00:00
Aotizhongxin
PM10
2015-07-13T00:00:00
Aotizhongxin
PM10
2015-07-14T00:00:00
Aotizhongxin
PM10
2015-07-15T00:00:00
Aotizhongxin
PM10
2015-07-16T00:00:00
Aotizhongxin
PM10
2015-07-17T00:00:00
Aotizhongxin
PM10
2015-07-18T00:00:00
End of preview. Expand in Data Studio

Sparse panel demo (Beijing air quality)

Precomputed scenarios behind the sparse-panel-demo Space (code: GitHub), which accompanies the blog post Smooth Levels from Sparse, Gappy Panels.

Daily PM2.5 and PM10 at 12 Beijing monitoring stations (March 2013 – February 2017) are thinned to a few hourly readings a day, with gaps, and three estimators try to recover the slow underlying level:

  • joint: a small network modelling both pollutants together (area embedding + station offset, Gaussian time bumps, curvature penalty);
  • single-target: the same network fitted to one pollutant at a time;
  • ±15-day mean: hour-weighted mean of the readings within 15 days, falling back to the station's area where it has none.

The benchmark ("truth") is the centred 31-day moving average of the full daily means, on the log scale.

Scenarios

One global setting, lam: the Poisson mean number of hourly readings kept per station-day and pollutant (0.5, 1.2, 3.0). Each station also has a fixed label that degrades it relative to lam:

label stations treatment
regular 4 Poisson(lam) hours, two 20–60 day gaps per pollutant
sparse 2 Poisson(0.4 × lam) hours, same gaps
very sparse 2 as regular, then 15% of observed days kept
long gap 2 as regular, but the gaps are 90–120 days
dropped series 2 one pollutant removed entirely (dropped column)

Random draws are fixed per cell across scenarios, so a higher lam keeps a superset of a lower one's hours and gaps sit in the same place.

Files

file rows columns
labels.parquet 12 station, label, area, dropped
truth.parquet 35,064 station, pollutant, date, value (31-day MA, µg/m³)
readings.parquet 46,927 station, date, pollutant, value (daily mean of kept hours), n (hours kept), lam
gaps.parquet 2,454 station, pollutant, date (days inside a gap block; same for every lam)
predictions.parquet 315,576 station, date, pollutant, pred, lam, estimator
metrics.parquet 315 lam, label, pollutant, estimator, day_type, days, error, bias

error is the mean absolute log error against the 31-day MA (0.15 ≈ 15%), bias the mean log error. day_type is all, observed (a reading that day), unobserved (no reading, outside the gaps) or gap. For the dropped series label, pollutant is dropped and only the dropped series is scored. meta.json records the network settings (from look-ahead CV in the blog post: curvature penalty 1e5, 30-day bump spacing, 100 steps).

Reproduce with uv run python precompute.py in the GitHub repo (~30 s on a laptop CPU).

Source and license

Derived from the Beijing Multi-Site Air Quality dataset (Song Chen, 2017), UCI Machine Learning Repository, doi:10.24432/C5RK5G, licensed CC BY 4.0. This derived dataset is released under the same license. Changes: daily aggregation, thinning to sparse readings, gap removal, and model predictions as described above.

Downloads last month
74

Models trained or fine-tuned on prteek/sparse-panel-demo

Space using prteek/sparse-panel-demo 1

Article mentioning prteek/sparse-panel-demo