Download examples.py from helmo/tabum: direct link, hf CLI and curl.
- Browser
- Download file 6.39 kB
-
https://huggingface.co/spaces/helmo/tabum/resolve/main/examples.py
- Command line
-
hf download hf://spaces/helmo/tabum/examples.py
-
curl -L -o examples.py https://huggingface.co/spaces/helmo/tabum/resolve/main/examples.py
6.39 kB
| """Example datasets shown in the Space: what each is, what to look for, and where it comes from.""" | |
| SERIES = { | |
| "walmart": { | |
| "title": "Walmart store sales", "icon": "π", "unit": "units sold per day", "horizon": 28, "context": 1500, | |
| "blurb": "Daily units sold in 10 Walmart stores across California, Texas and Wisconsin (2011 to 2016), summed per " | |
| "store and department. Look for the weekend peaks, the paycheck rhythm within each month and the " | |
| "Christmas closures.", | |
| "credit": 'M5 Forecasting competition data (Walmart, via the <a href="https://www.kaggle.com/competitions/m5-forecasting-accuracy" ' | |
| 'target="_blank">M5 competition</a>), loaded from ' | |
| '<a href="https://huggingface.co/datasets/autogluon/chronos_datasets" target="_blank">autogluon/chronos_datasets</a>.', | |
| }, | |
| "electricity": { | |
| "title": "Electricity demand", "icon": "β‘", "unit": "demand (hourly mean)", "horizon": 168, "context": 3000, | |
| "blurb": "Hourly electricity demand of five Australian states (half-hourly data averaged to hours, the last two " | |
| "years to early 2015; the source does not name each state, so they are numbered from largest). A daily double hump, quieter weekends, and summer and winter peaks.", | |
| "credit": 'Australian Energy Market Operator data, from the <a href="https://zenodo.org/communities/forecasting" ' | |
| 'target="_blank">Monash Time Series Forecasting Archive</a> (Godahewa et al., 2021), loaded from ' | |
| '<a href="https://huggingface.co/datasets/autogluon/chronos_datasets" target="_blank">autogluon/chronos_datasets</a>.', | |
| }, | |
| "pedestrians": { | |
| "title": "City foot traffic", "icon": "πΆ", "unit": "pedestrians per hour", "horizon": 168, "context": 3000, | |
| "blurb": "Hourly pedestrian counts from sensors in central Melbourne (one year per sensor, between 2016 and 2019). " | |
| "Commuter peaks on weekdays, a different shape on weekends.", | |
| "credit": 'City of Melbourne Pedestrian Counting System, from the <a href="https://zenodo.org/communities/forecasting" ' | |
| 'target="_blank">Monash Time Series Forecasting Archive</a>, loaded from ' | |
| '<a href="https://huggingface.co/datasets/autogluon/chronos_datasets" target="_blank">autogluon/chronos_datasets</a>.', | |
| }, | |
| "traffic": { | |
| "title": "Freeway traffic", "icon": "π", "unit": "lane occupancy (0 to 1)", "horizon": 168, "context": 3000, | |
| "blurb": "Hourly occupancy of San Francisco Bay Area freeway lanes (2015 to 2016): the share of time a car is over " | |
| "the sensor. Rush hours, weekends and holidays.", | |
| "credit": 'Caltrans Performance Measurement System (PeMS), from the <a href="https://zenodo.org/communities/forecasting" ' | |
| 'target="_blank">Monash Time Series Forecasting Archive</a>, loaded from ' | |
| '<a href="https://huggingface.co/datasets/autogluon/chronos_datasets" target="_blank">autogluon/chronos_datasets</a>.', | |
| }, | |
| "births": { | |
| "title": "US births", "icon": "πΆ", "unit": "births per day", "horizon": 56, "context": 2000, | |
| "blurb": "Births per day in the United States, 1969 to 1988. Fewer births at weekends and on holidays (scheduled " | |
| "deliveries), and a summer high.", | |
| "credit": 'US National Center for Health Statistics data, from ' | |
| '<a href="https://huggingface.co/datasets/Salesforce/GiftEval" target="_blank">Salesforce/GiftEval</a>.', | |
| }, | |
| } | |
| TABLES = { | |
| "titanic": { | |
| "title": "Titanic survival", "icon": "π’", "target": "survived", | |
| "blurb": "Who survived the sinking? Ages and cabin classes, with missing ages left as they are: tabUM reads " | |
| "missing values natively, nothing is imputed.", | |
| "credit": 'Titanic passenger list (<a href="https://www.openml.org/d/40945" target="_blank">OpenML 40945</a>).', | |
| }, | |
| "penguins": { | |
| "title": "Penguin species", "icon": "π§", "target": "species", | |
| "blurb": "AdΓ©lie, Chinstrap or Gentoo, from bill and flipper measurements and the island.", | |
| "credit": 'Palmer Station penguins, Gorman, Williams and Fraser (2014) ' | |
| '(<a href="https://www.openml.org/d/42585" target="_blank">OpenML 42585</a>).', | |
| }, | |
| "mushrooms": { | |
| "title": "Edible or poisonous", "icon": "π", "target": "class", | |
| "blurb": "Every column is a category (cap shape, odor, gill colour...). Odor alone gives most of it away; see " | |
| "what the model leans on.", | |
| "credit": 'UCI Mushroom data, Audubon field guide (<a href="https://www.openml.org/d/24" target="_blank">OpenML 24</a>).', | |
| }, | |
| "letters": { | |
| "title": "26-letter recognition", "icon": "π€", "target": "class", | |
| "blurb": "Which capital letter is it, from 16 shape statistics of its image? 26 classes: most tabular foundation " | |
| "models stop at 10, tabUM goes to 100.", | |
| "credit": 'UCI Letter Recognition, Frey and Slate (1991), a 4,000-row sample ' | |
| '(<a href="https://www.openml.org/d/6" target="_blank">OpenML 6</a>).', | |
| }, | |
| "income": { | |
| "title": "Income over $50k", "icon": "πΌ", "target": "class", | |
| "blurb": "Does a person earn more than $50k a year? US census records with jobs, education and hours.", | |
| "credit": 'UCI Adult (1994 US census), a 4,000-row sample (<a href="https://www.openml.org/d/1590" target="_blank">OpenML 1590</a>).', | |
| }, | |
| "housing": { | |
| "title": "California house prices", "icon": "π ", "target": "median_house_value", | |
| "blurb": "Median house value per district from income, age, rooms and location. Regression: tabUM gives a whole " | |
| "distribution, shown as an 80% range.", | |
| "credit": 'California housing, Pace and Barry (1997), a 4,000-row sample ' | |
| '(<a href="https://www.openml.org/d/537" target="_blank">OpenML 537</a>).', | |
| }, | |
| "diamonds": { | |
| "title": "Diamond prices", "icon": "π", "target": "price", | |
| "blurb": "Price from carat, cut, colour, clarity and size.", | |
| "credit": 'ggplot2 diamonds, a 4,000-row sample (<a href="https://www.openml.org/d/42225" target="_blank">OpenML 42225</a>).', | |
| }, | |
| } | |