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

Move to rank internals #174

Draft
wants to merge 4 commits into
base: dev-2.0.0
Choose a base branch
from
Draft

Move to rank internals #174

wants to merge 4 commits into from

Conversation

daffidwilde
Copy link
Owner

Begins the process of closing #153.

This PR is the staging point for a few more to come prior to merging into dev-2.0.0. Each subsequent PR will implement these rank matrix changes to the problems implemented in matching.

- utility to rank
- preference to rank
* Write init test for new single matching

* Move to ruff over black for formatting

* Remove limit on parallel CI

* Write test for SingleMatching repr dunder method

* Check dictionary is in single matching repr

* Write test for equivalence dunder

* Write test for single matching inverter

* Remove old SingleMatching tests

* Implement SingleMatching class

* Move matching classes to subpackage

* Write test for instantiating SM classes

* Fix ruff config and add pre-commit

* Write tests for utility builder

* Write test for preference list builder (slow!)

* Reduce test size for preference builder

* Implement builders for SM

* Write input validator tests

* Implement input validator

* Ensure higher utility leads to higher ranking

* Reintegrate tests into modular structure

* Translate SM algorithm test to rankings

* Write test for player set attribute inverter

* Move rank matrices to class attributes

* Write tests for solver

* Implement solver and algorithm

* Rewrite preference converter test

* Write test for converting incomplete preferences

* Reimplement preference converter

* Include preference lookup in attributes

* Write optimality tests

* Rewrite example tests

* Ensure rejections are recorded

* Write test for preference matching converter

* Revert example tests to use preference terms

* Implement a preference matching converter

* Reformat code base and drop deprecated np.infty

* Bump actions and drop support for Python<3.10

* Stop doctesting paper and fix examples in README

* Update all docs that SM touches

* Remove creation from instances how-to

* Remove SM solver test module

* Wrap SR tutorial solution with `dict()` for now

The changes to `SingleMatching` are causing issues downstream.

Still not sure what this will look like for SR in the future, but this
will do for now.

* Make small formatting changes

* Add in manual matching update for SR test

Again, the new `SingleMatching` class is causing issues for SR...

* Remove change to SM discussion

* Stop rejections leading to immediate forget
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.

1 participant