alarm-redist / redist

Simulation methods for legislative redistricting.
https://alarm-redist.github.io/redist/
GNU General Public License v2.0
66 stars 23 forks source link

SMC Improvements #134

Closed CoryMcCartan closed 2 years ago

CoryMcCartan commented 2 years ago

This PR

  1. Adds a missing correction term to the SMC algorithm
  2. Adds parallel capacity (within and across sampling runs) to SMC
  3. Provides new diagnostics functions and capabilities, with friendly, human-readable output
  4. Performs general cleanup, etc., towards redist 4.0
kuriwaki commented 2 years ago

Additional question: how does set.seed work with runs in SMC. Guidance on how to make SMC with multiple runs replicable with set.seed would be helpful.

CoryMcCartan commented 2 years ago

Additional question: how does set.seed work with runs in SMC. Guidance on how to make SMC with multiple runs replicable with set.seed would be helpful.

@kuriwaki yes, good point. Looking into this. Goal would be for a single set.seed call to determine all of the runs' output