MDS visualizations of the swedish parliament
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

MDS visualizations of the swedish parliament.

This is a hack that makes MDS visualizations based on the voting data from the swedish parliament.

Heavily inspired by chapter 9 of the book Machine Learning for Hackers and the python port available here.


Voteringar 2011-2012

How to get it running?

Install dependencies

  • Python
  • Scikit-learn
  • Pandas
  • Matplotlib
  1. Download data from riksdagen and unzip it
  2. Run python <path to your data> > prepared_data.csv
  3. Run python prepared_data.csv
  4. Check out the result by opening prepared_data.csv.png