项目作者: mggg

项目描述 :
A high-performance implementation of GerryChain in Julia
高级语言: Julia
项目地址: git://github.com/mggg/GerryChainJulia.git
创建时间: 2020-02-11T20:08:15Z
项目社区:https://github.com/mggg/GerryChainJulia

开源协议:GNU General Public License v3.0

下载


GerryChain

Build and Test status
Code Coverage
DOI


GerryChain is a Julia package for building ensembles of districting plans using Markov Chain Monte Carlo techniques. It is developed and maintained by the Metric Geometry and Gerrymandering Group and our network of volunteers. We also have a Python package of the same name.

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.

Getting set up

If you already have Julia installed, then installing GerryChain is easy using Julia’s in-built package manager Pkg.

  1. using Pkg; Pkg.add("GerryChain")
  2. using GerryChain

If you need to install Julia, use Julia in Jupyter Notebooks or use learn how to use GerryChain in a specific virtual environment, head over to our more detailed setup instructions.

Please refer to our documentation pages for API references.

Follow this link if you want to get started on your first chain already.

If you want to contribute to this project, please check our contributing guidelines.

If you have any issues or requests, please do not hesitate to raise an issue.

Citations

You can cite the Recombination algorithm as

  1. @article{DeFord2021Recombination,
  2. journal = {Harvard Data Science Review},
  3. doi = {10.1162/99608f92.eb30390f},
  4. note = {https://hdsr.mitpress.mit.edu/pub/1ds8ptxu},
  5. title = {Recombination: A Family of Markov Chains for Redistricting},
  6. url = {https://hdsr.mitpress.mit.edu/pub/1ds8ptxu},
  7. author = {DeFord, Daryl and Duchin, Moon and Solomon, Justin},
  8. date = {2021-03-31},
  9. year = {2021},
  10. month = {3},
  11. day = {31},
  12. }

The current version of the code can be cited as

  1. @software{gerrychain_julia_4649464,
  2. author = {Parker Rule and
  3. Matthew Sun and
  4. Bhushan Suwal
  5. },
  6. title = {mggg/GerryChainJulia: Minor fixes + Save as HDF5},
  7. month = mar,
  8. year = 2021,
  9. publisher = {Zenodo},
  10. version = {v0.1.3},
  11. doi = {10.5281/zenodo.4649464},
  12. url = {https://doi.org/10.5281/zenodo.4649464}
  13. }