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.
Install dependencies
- Python
- Scikit-learn
- Pandas
- Matplotlib
- Download data from riksdagen and unzip it
- Run
python prepare_data.py <path to your data> > prepared_data.csv
- Run
python plot_data.py prepared_data.csv
- Check out the result by opening
prepared_data.csv.png