Skip to content

gerrymandr/metric_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MGGG metric visualizer

Purpose

There are many different metrics that attempt to measure how weird-looking a district is. Whether measuring compactness, convexity, or bizarreness, all of the algorithms do a similar thing: They take in a set of geometries defining the districts of a plan, and return a number for each district indicating how much suspicion of gerrymandering should be given to the district.

A library of such metrics can be found in the python-mander repository in this project. This project provides a pipeline for applying such algorithms to real-world data and comparing to other existing algorithms.

mimimal view

Steps

  1. Download Data: data_downloader.py is a script for downloading a set of data from the internet to use as the test data
  2. Extract Data: The downloaded data is then processed to give it a consistent schema and projection.
  3. Compute Metrics: The values of a set of metrics are computed for comparison
  4. Display Results: Once the metrics have been computed, they must be understood. A set of pre-built visualizations have been provided to help the user identify patterns in the data. This is also helpful for explaining the different metrics to an unfamiliar audience. These are provided as a webpage. The officially maintained set of metrics will be hosted for now at http://www.gis.leg.mn/iMaps/metricViz/#.

Primary Contacts

solbrigm@gmail.com cantey0701@gmail.com

About

A workflow to to acquire legislative data and visualize it with Mapbox Gl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published