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

Conversation

dmnapolitano
Copy link
Contributor

@dmnapolitano dmnapolitano commented Dec 1, 2023

Description

This PR provides three one potential transition solver and a base class 🎉

Work on bootstrapping the matrix solver is still in-progress and can be found in this branch.

The EI solver is now the EI model and is part of elex-voterflow-model, where it is still a subclass of TransitionSolver.

Jira Ticket

ELEX-3031

Test Steps

tox!

…un and also to inherit from TransitionSolver
…he EI solver and also experimenting with different sampler options there
@dmnapolitano dmnapolitano marked this pull request as ready for review January 31, 2024 19:43
@dmnapolitano dmnapolitano requested a review from a team as a code owner January 31, 2024 19:43
@dmnapolitano
Copy link
Contributor Author

Hi @lennybronner 👋🏻

Alright, I think this is officially ready for review! Looking forward to addressing all your questions/comments/concerns 😄 🎉

In particular, please take a look at how I implemented weighting in the matrix solver. I'm curious if I got something wrong there and that's why we're having problems with weighting + stratifying 🤔

Thanks!!

Copy link
Collaborator

@lennybronner lennybronner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I left some small notes/questions.

src/elexsolver/TransitionMatrixSolver.py Outdated Show resolved Hide resolved
src/elexsolver/TransitionMatrixSolver.py Outdated Show resolved Hide resolved
src/elexsolver/TransitionSolver.py Outdated Show resolved Hide resolved
src/elexsolver/TransitionSolver.py Outdated Show resolved Hide resolved
@dmnapolitano
Copy link
Contributor Author

Hi @lennybronner I removed the requirement of everything having to be integers here and updated the unit tests 🎉 Let me know what you think and I'll make sure elex-voterflow-model is working with these changes. Thanks! 😄

@dmnapolitano dmnapolitano merged commit a4e6030 into develop Mar 29, 2024
3 checks passed
@dmnapolitano dmnapolitano deleted the ELEX-3031-voterflow-models branch March 29, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants