-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
15 lines (13 loc) · 1.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Ballot Clustering Project Code
This repo contains code related to clustering/optimization methods to "learn" blocs and slates from ranked election data. It contains the following files.
Tutorial.ipynb: start here to learn the toolkit.
Clustering_Functions.py: all of the functions used to cluster and study elections.
create_results_dataframe.py: Runs several clustering methods on 1070 Scottish elections and records the results in the dataframe results.pkl
results.pkl: created by create_results_dataframe.py
Analyze_results_dataframe.ipbn: Generates tables and plots to help understand the results.
MDS_plots.ipynb: generates ballot-, candidate-, and party-MDS plots.
scot-elex: folder containing the 1070 Scottish elections
Modularity.ipynb: notebook that studies modularity maximization as a clustering method.
modularity_clustering_plus.pkl: dataframe created by Modularity.ipynb
tables: folder containing the tables generated by the above notebooks.
plots: folder containing the plots generated by the above notebooks.