Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELEX-3031: Potential Voterflow Solvers #17

Merged
merged 136 commits into from
Mar 29, 2024

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    e0580cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37b756c View commit details
    Browse the repository at this point in the history
  3. Modifying TransitionMatrixSolver according to some experiments I've r…

    …un and also to inherit from TransitionSolver
    dmnapolitano committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    da59677 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d6aef0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9ebe5c5 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    9f49d83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f965d8 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Adding _check_and_rescale() to superclass so the same check can be pe…

    …rformed before the cvxpy solver
    dmnapolitano committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    9e5a3fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76f4b61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79076a7 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. Adding the ability to compute a prediction (credible) interval with t…

    …he EI solver and also experimenting with different sampler options there
    dmnapolitano committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    2254a65 View commit details
    Browse the repository at this point in the history
  2. Handle zero and other weird division correctly when rescaling the per…

    …centages to sum to 1 at the unit-level
    dmnapolitano committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    3aa0f5b View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    a67304f View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Silencing some warnings

    dmnapolitano committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    e54ba85 View commit details
    Browse the repository at this point in the history
  2. Increasing the target_accept on the sampler and making sure the sampl…

    …ing_chains argument is an int
    dmnapolitano committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    aedcdff View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. Configuration menu
    Copy the full SHA
    e9fc725 View commit details
    Browse the repository at this point in the history
  2. Explicitly specifying the cvxpy solver to use since the default is ab…

    …out to change (also squashes warning)
    dmnapolitano committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    08401eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d35f67 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ac1c78 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Merge branch 'develop' of github.com:washingtonpost/elex-solver into …

    …ELEX-3031-voterflow-models
    dmnapolitano committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    ae0b320 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c87c25b View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    8d4637d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8fc068c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c05acde View commit details
    Browse the repository at this point in the history
  4. Test against Python 3.11 because I don't think some of the requiremen…

    …ts are available for 3.10
    dmnapolitano committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    39c9749 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9d595e8 View commit details
    Browse the repository at this point in the history
  6. Trying a slightly-older version of numpy to be compatible with the cu…

    …rrent version of pytensor
    dmnapolitano committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    78d5655 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    54bd39f View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    5ce550c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c25abec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    14d5239 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6e2dfaa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a5ced36 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dabea4e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bc1a769 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Pass in matrixes of vote counts (integers) so I can ensure the percen…

    …tage transitions are being computed correctly 😞
    dmnapolitano committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    9f2683c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53d4daa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1d2e26b View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Configuration menu
    Copy the full SHA
    9ffdc70 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Configuration menu
    Copy the full SHA
    c2a8909 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6beb558 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f734896 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d19897 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. Configuration menu
    Copy the full SHA
    d32844c View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Handle situation where numpy arrays passed in to MAE function are act…

    …ually lists and not numpy arrays
    dmnapolitano committed Dec 2, 2023
    Configuration menu
    Copy the full SHA
    e6a8033 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8e65c6 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Fixing issue where integer division was being performed when rescalin…

    …g so actual numbers weren't being used to get like any actual voterflows
    dmnapolitano committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    d1044d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a31558 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    399daaf View commit details
    Browse the repository at this point in the history
  4. Using the Clarabel solver instead of ECOS after all since it seems mo…

    …re robust; setting transition_matrix pos=True helps prevent negative results
    dmnapolitano committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    6e130ba View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Configuration menu
    Copy the full SHA
    5d33777 View commit details
    Browse the repository at this point in the history
  2. Now generating random residuals for each unit/candidate rather than j…

    …ust distributing them uniformly across all units/candidates
    dmnapolitano committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    ccea996 View commit details
    Browse the repository at this point in the history
  3. Hmmmmmm...

    dmnapolitano committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    f67852b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    baf0e41 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b1f3a7a View commit details
    Browse the repository at this point in the history
  6. Switching the EI solver over to (units x candidates) to match the mat…

    …rix solver and remove confusion
    dmnapolitano committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    5fa30c7 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Configuration menu
    Copy the full SHA
    80512b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b453261 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ed57ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5088ee8 View commit details
    Browse the repository at this point in the history
  5. Switching to 'classic' bootstrap matrix solver which seems to produce…

    … more interesting results...
    dmnapolitano committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    5af4835 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    871bf11 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Configuration menu
    Copy the full SHA
    2f9c75b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    833cb82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    211e5b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2023

  1. Configuration menu
    Copy the full SHA
    518a6f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. Removing weighting from EI solver for now since it's SUPER slow and p…

    …robably not implemented right; also making the prediction/credible interval distinction clear
    dmnapolitano committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    b2232d4 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Configuration menu
    Copy the full SHA
    a77409c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5559e22 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11d23bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f661ce8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9e48134 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8bda934 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c0efe08 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. Configuration menu
    Copy the full SHA
    cec6a3c View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    260446f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e32fb80 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. Configuration menu
    Copy the full SHA
    20e14b6 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2023

  1. Adding function for WAPE

    dmnapolitano committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    0905e66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f7efcb View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2023

  1. Configuration menu
    Copy the full SHA
    a5346de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7955e82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27a92be View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. Configuration menu
    Copy the full SHA
    61d2f01 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    372cef3 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Configuration menu
    Copy the full SHA
    a93a189 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Configuration menu
    Copy the full SHA
    54a47b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ec424e View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. Configuration menu
    Copy the full SHA
    1fc45b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12861ed View commit details
    Browse the repository at this point in the history
  3. Adding unit test for strict constraints with matrix solver and global…

    … RTOL and ATOL constants for all matrix solver unit tests
    dmnapolitano committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    4579678 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfd05a8 View commit details
    Browse the repository at this point in the history
  5. Adding a matrix solver unit test where the matrix needs to be pivoted…

    … first and clarifying the use of lambda and L2 regularization
    dmnapolitano committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    1b583b8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bba196f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    98b9e81 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Configuration menu
    Copy the full SHA
    3e57ffd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8064b6e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    006de0e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    85c9114 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fd2a344 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    707f641 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. Trying to fix my failing pymc-related unit tests by adding a pytensor…

    …-compilation environment variable
    dmnapolitano committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    9997d13 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c69d6e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d6973b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0a9fd86 View commit details
    Browse the repository at this point in the history
  5. Reducing the number of samples drawn; want to see if the tests fail t…

    …he same way here and on Ubuntu
    dmnapolitano committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    9f7fea3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca57292 View commit details
    Browse the repository at this point in the history
  7. Adding a test for credible interval, increasing the number of samples…

    …, decreasing the tolerance
    dmnapolitano committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    8e594c4 View commit details
    Browse the repository at this point in the history
  8. Adding unit tests for other values that could be specified to credibl…

    …e interval and also getting credible interval transitions
    dmnapolitano committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    0bf5278 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f66e236 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c28a6f5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bc74763 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f2d0578 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d62680b View commit details
    Browse the repository at this point in the history
  14. Matrix and bootstrap solvers docstrings, return types, and modifying …

    …the confidence interval method to return transitions
    dmnapolitano committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    9c3379d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1ac03f3 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    5340492 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c69f88 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    160066c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67dd426 View commit details
    Browse the repository at this point in the history
  5. Removing the bootstrap matrix solver from this branch in favor of it …

    …living in the ELEX-3830 branch
    dmnapolitano committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    fe69ce4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e9ef2ed View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    92641ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    109b718 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. When the Clarabel solver fails or throws a warning, chain that to a R…

    …untimeError and raise the exception
    dmnapolitano committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    70bbaf7 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    1c18883 View commit details
    Browse the repository at this point in the history
  2. Moving rules about matrix dimensions that are specific to voterflow o…

    …ver to elex-voterflow-model
    dmnapolitano committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    ffde8aa View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Splitting fit_predict() into two methods, renaming 'percentages' to '…

    …self._betas', renaming 'weights' to 'sample_weight' to be consistent with sklearn
    dmnapolitano committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    71f29c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5a2e07 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    73f0c9e View commit details
    Browse the repository at this point in the history
  4. Forgot to run pre-commit

    dmnapolitano committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    2705e8b View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Removing math to convert the coefficients to 'transitions' from Trans…

    …itionSolver/TransitionMatrixSolver
    dmnapolitano committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    268ad15 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    f714ef4 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    4edb1fd View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. FIXED updated unit tests; integer data is no longer a requirement for…

    … transition solvers 🎉
    dmnapolitano committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    9beef48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06385f0 View commit details
    Browse the repository at this point in the history