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.
Permalink
Failed to load latest commit information.
.gitignore
README.md
README_swedish.md
doit.sh
plot_data.py
prepare_data.py
votering-201112.csv_prepared.png

README.md

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.

Example

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 prepare_data.py <path to your data> > prepared_data.csv
  3. Run python plot_data.py prepared_data.csv
  4. Check out the result by opening prepared_data.csv.png