Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Explores New Zealand's 2026 general election with seat allocation, overhang and forecast models, in a Gradio dashboard and a static page. Suits analysts, students and curious readers.
NZ General Election 2026 Explorer is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer cd nz-election-explorer
This Space is one author's analysis of New Zealand's 2026 general election. It models how votes turn into seats, including the extra overhang seats, and adds causal studies, a swing model for special votes and a forecast for 2029. It comes as a Gradio dashboard and as a static page. The author has retired an earlier Streamlit version.
It suits people who follow New Zealand politics and want to test seat scenarios, and students of electoral systems and statistics who like worked examples.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Politics and media | Analysts and journalists | Test how vote shares turn into seats under the allocation rules | Change a parameter and watch the seat counts recalculate |
| Academia | Political science students | Study disproportionality measures and causal methods on one case | Read how the Gallagher index is reported |
| Data science | Data scientists | See classifiers and causal designs applied to election data | Look at the special votes swing model |
| Civic interest | Curious readers | Browse the modelled results and the visual extras | Open the static page and explore the figures |
Skip it if you need official results or neutral polling, since every figure here comes from the author's own models.
| Use case | Who | What they get back |
|---|---|---|
| Seat scenarios | Analysts | Seat counts that recalculate when you change inputs |
| Causal reading | Students | Worked examples of causal methods applied to overhang seats |
| Browsing visuals | Curious readers | Many figures, a slide deck and interactive pages |
The online copy needs nothing. For a copy on your own computer, you need the following.
pip install -U huggingface_hub hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer cd nz-election-explorer
pip install -r requirements.txt python app.py
Online, open the Space's page. Locally, start the dashboard with the command below, or open the static page, which runs inside the browser.
python app.py
| Tool | What it does |
|---|---|
| Gradio dashboard in app.py | The live version, which recalculates results when parameters change and runs the forecasts |
| Static page in index.html | A client-side version with sound and shader visuals that needs no server quota |
You open the dashboard and change a vote share. The seat allocation and the overhang count recalculate, and you compare the new result with the original figures on the page.
If you are new, overhang seats are extra seats a party wins when it takes more local seats than its share of the party vote would give. Open the static page first and browse the figures before you change anything.
If you know the field, the page applies Sainte-Laguë allocation under the Electoral Act and a Shapley split of the overhang seats. It adds a regression discontinuity on incumbency, an instrumental variable design, XGBoost for special votes and a Hibbs-Stokes model for 2029. The source does not list the assumptions behind the headline numbers.
The numbers below are what the page reports from its own models, not official counts.
Explores New Zealand's 2026 general election with seat allocation, overhang and forecast models, in a Gradio dashboard and a static page. Suits analysts, students and curious readers.
Made by edithatogo on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: This Space is one author's analysis of New Zealand's 2026 general election. It models how votes turn into seats, including the extra overhang seats, and adds causal studies, a swing model for special votes and a forecast for 2029. It comes as a Gradio dashboard and as a static page. The author has retired an earlier Streamlit version.
Who it suits: It suits people who follow New Zealand politics and want to test seat scenarios, and students of electoral systems and statistics who like worked examples.
Industry | Who uses it | How they use it | Example
Politics and media | Analysts and journalists | Test how vote shares turn into seats under the allocation rules | Change a parameter and watch the seat counts recalculate
Academia | Political science students | Study disproportionality measures and causal methods on one case | Read how the Gallagher index is reported
Data science | Data scientists | See classifiers and causal designs applied to election data | Look at the special votes swing model
Civic interest | Curious readers | Browse the modelled results and the visual extras | Open the static page and explore the figures
Skip it if you need official results or neutral polling, since every figure here comes from the author's own models.
Where to use it:
Use case | Who | What they get back
Seat scenarios | Analysts | Seat counts that recalculate when you change inputs
Causal reading | Students | Worked examples of causal methods applied to overhang seats
Browsing visuals | Curious readers | Many figures, a slide deck and interactive pages
How to set it up: The online copy needs nothing. For a copy on your own computer, you need the following.
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer
pip install -r requirements.txt
python app.py
How to use it: Online, open the Space's page. Locally, start the dashboard with the command below, or open the static page, which runs inside the browser.
python app.py
Tool | What it does
Gradio dashboard in app.py | The live version, which recalculates results when parameters change and runs the forecasts
Static page in index.html | A client-side version with sound and shader visuals that needs no server quota
Example: You open the dashboard and change a vote share. The seat allocation and the overhang count recalculate, and you compare the new result with the original figures on the page.
For newcomers and experts: If you are new, overhang seats are extra seats a party wins when it takes more local seats than its share of the party vote would give. Open the static page first and browse the figures before you change anything.
If you know the field, the page applies Sainte-Laguë allocation under the Electoral Act and a Shapley split of the overhang seats. It adds a regression discontinuity on incumbency, an instrumental variable design, XGBoost for special votes and a Hibbs-Stokes model for 2029. The source does not list the assumptions behind the headline numbers.
You open the dashboard or the static page
You set vote and model parameters
The seat and overhang models recalculate
Causal and forecast views update
Good to know: The numbers below are what the page reports from its own models, not official counts.
Title: Disproportionality measures the page reports
Gallagher Index: 4.82%
Loosemore-Hanby: 6.14%
Rae Index: 1.24%
Maximum Deviation: 5.34%
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| NZ General Election 2026 Explorer This page | 1 | static | apache-2.0 | |
| Arena LeaderboardShares static | 5,039 | static | apache-2.0 | |
| BrowserShares static | 533 | static | cc0-1.0 | |
| Model PulseShares static | 214 | static | apache-2.0 | |
| MTEB-BR LeaderboardShares static | 126 | static | apache-2.0 | |
| Hub StatsShares static | 65 | static | apache-2.0 |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…
yuji-nozawa · Kit
Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…