All Projects → mggg → Gerrychain

mggg / Gerrychain

Licence: other
Use MCMC to analyze districting plans and gerrymanders

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Gerrychain

Gisportal
A web-based GIS tool for visualisation and analysis of geospatial data
Stars: ✭ 48 (-29.41%)
Mutual labels:  gis
Openrouteservice R
🌐 R package to query openrouteservice.org
Stars: ✭ 57 (-16.18%)
Mutual labels:  gis
Emcee
The Python ensemble sampling toolkit for affine-invariant MCMC
Stars: ✭ 1,121 (+1548.53%)
Mutual labels:  mcmc
3d Tiles
Specification for streaming massive heterogeneous 3D geospatial datasets 🌎
Stars: ✭ 1,054 (+1450%)
Mutual labels:  gis
Geotiff.io
Static website for viewing and analyzing GeoTIFF's in the browser
Stars: ✭ 53 (-22.06%)
Mutual labels:  gis
Ee Runner
Command-line runner for Google Earth Engine Playground scripts
Stars: ✭ 59 (-13.24%)
Mutual labels:  gis
Sentinelplayground
Simple application for using Sentinel-2 WMS service
Stars: ✭ 48 (-29.41%)
Mutual labels:  gis
Featureserver
An open source Geoservices Implementation
Stars: ✭ 66 (-2.94%)
Mutual labels:  gis
Leaflet Geoman
🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
Stars: ✭ 1,088 (+1500%)
Mutual labels:  gis
Ocgis
OpenClimateGIS is a set of geoprocessing and calculation tools for CF-compliant climate datasets.
Stars: ✭ 60 (-11.76%)
Mutual labels:  gis
Inloco
A Geographic Information System (GIS) used by Ministério Público do Estado do Rio de Janeiro to show social, institutional and administrative data , based on React and Leaflet, interacting with a GeoServer back-end.
Stars: ✭ 51 (-25%)
Mutual labels:  gis
Shadoweditor
Cross-platform 3D scene editor based on three.js, golang and mongodb for desktop and web. https://tengge1.github.io/ShadowEditor-examples/
Stars: ✭ 1,060 (+1458.82%)
Mutual labels:  gis
React Qmap
💡react腾讯地图开源组件
Stars: ✭ 60 (-11.76%)
Mutual labels:  gis
C2cgeoportal
c2cgeoportal application
Stars: ✭ 50 (-26.47%)
Mutual labels:  gis
Stetl
Stetl, Streaming ETL, is a lightweight geospatial processing and ETL framework written in Python.
Stars: ✭ 64 (-5.88%)
Mutual labels:  gis
Me Gis
GIS files created by the ME-DEM team.
Stars: ✭ 48 (-29.41%)
Mutual labels:  gis
Gwt Ol
GWT wrapper for OpenLayers 3+ using JSInterop
Stars: ✭ 57 (-16.18%)
Mutual labels:  gis
Turing.jl
Bayesian inference with probabilistic programming.
Stars: ✭ 1,150 (+1591.18%)
Mutual labels:  mcmc
Bayesiantools
General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics
Stars: ✭ 66 (-2.94%)
Mutual labels:  mcmc
Geotools
Official GeoTools repository
Stars: ✭ 1,109 (+1530.88%)
Mutual labels:  gis

========== GerryChain

.. image:: https://circleci.com/gh/mggg/GerryChain.svg?style=svg :target: https://circleci.com/gh/mggg/GerryChain :alt: Build Status .. image:: https://codecov.io/gh/mggg/GerryChain/branch/master/graph/badge.svg :target: https://codecov.io/gh/mggg/GerryChain :alt: Code Coverage .. image:: https://readthedocs.org/projects/gerrychain/badge/?version=latest :target: https://gerrychain.readthedocs.io/en/latest :alt: Documentation Status .. image:: https://badge.fury.io/py/gerrychain.svg :target: https://pypi.org/project/gerrychain/ :alt: PyPI Package .. image:: https://img.shields.io/conda/vn/conda-forge/gerrychain.svg?color=%230099cd :target: https://anaconda.org/conda-forge/gerrychain :alt: conda-forge Package

GerryChain is a Python library for building ensembles of districting plans using Markov chain Monte Carlo. It is developed and maintained by the Metric Geometry and Gerrymandering Group and our network of volunteers. It is distributed under the 3-Clause BSD License_.

The basic workflow is to start with the geometry of an initial plan and generate a large collection of sample plans for comparison. Usually, we will constrain these sampled plans in such a way that they perform at least as well as the initial plan according to traditional districting principles, such as population balance or compactness. Comparing the initial plan to the ensemble provides quantitative tools for measuring whether or not it is an outlier among the sampled plans.

.. _Voting Rights Data Institute: http://gerrydata.org/ .. _chain: https://github.com/gerrymandr/cfp_mcmc .. _Markov chain Monte Carlo: https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo .. _Metric Geometry and Gerrymandering Group: https://www.mggg.org/ .. _3-Clause BSD License: https://opensource.org/licenses/BSD-3-Clause

Getting started

See our Getting started guide_ for the basics of using GerryChain.

.. _Getting started guide: https://gerrychain.readthedocs.io/en/latest/user/quickstart.html

We also highly recommend the resources prepared by Daryl R. DeFord of MGGG for the 2019 MIT IAP course Computational Approaches for Political Redistricting_.

.. _Computational Approaches for Political Redistricting: https://people.csail.mit.edu/ddeford//CAPR.php

Useful links

  • Documentation_
  • Bug reports and feature requests_
  • Contributions welcome!_

.. _Documentation: https://gerrychain.readthedocs.io/en/latest/ .. _Bug reports and feature requests: https://github.com/mggg/gerrychain/issues .. _Contributions welcome!: https://github.com/mggg/gerrychain/pulls

Installation

Using conda (recommended)

To install GerryChain from conda-forge_ using conda_, run

.. code-block:: console

conda install -c conda-forge gerrychain

For this command to work as intended, you will first need to activate the conda environment that you want to install GerryChain in. If the environment you want to activate is called vrdi (for example), then you can do this by running

.. code-block:: console

conda activate vrdi

If this command causes problems, make sure conda is up-to-date by running

.. code-block:: console

conda update conda
conda init

For more information on using conda to install packages and manage dependencies, see Getting started with conda_.

.. _Getting started with conda: https://conda.io/projects/conda/en/latest/user-guide/getting-started.html .. _conda: https://conda.io/projects/conda/en/latest/ .. _conda-forge: https://conda-forge.org/

Using pip

To install GerryChain from PyPI_, run pip install gerrychain from the command line.

This approach often fails due to compatibility issues between our different Python GIS dependencies, like geopandas, pyproj, fiona, and shapely. For this reason, we recommend installing from conda-forge for most users.

.. _PyPI: https://pypi.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].