-
Notifications
You must be signed in to change notification settings - Fork 1
mggg/ballot-clustering
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# 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. scot-elex: folder containing the 1070 Scottish elections THE REMAINING FILES ARE EXPERIMENTS AND ANALYSES OF THE SCOTTISH 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. 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.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published