-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move algorithms to submodule (#121) * Update imports and wording in tests. * Update subpackage inits and util files. * Move algorithm funcs to algorithm subpackage. * Format codebase with isort, black, flake8. * Update API docs. * Make `Player.forget()` protected. i.e. /forget/_forget * Move to `_forget` in all tests. * Move to `_forget` in SA player classes. These players have their own forget methods. * Move to `_forget` in base game and util function. * Move to `_forget` in games. * Protect `Player.match()` and `Player.unmatch()` * Move to `_(un)match` in other player tests. * Move to `_unmatch` in SR example test. * Move to `_(un)match` in all player classes. * Move to `_(un)match` in games and util functions. * Protect the `delete` and `match` functions. The ones in `matching.games.util` are for matching/deleting pairs. * Make relevant changes to game calls. * Minor formatting fixes. * Implement extended algorithms (from book) (#130) * Implement extended algorithms (from book) Thanks to The Good Book (citation in `stable_roommates.py`), some minor adjustments to HR and SM (nothing functionally different), and a complete overhaul of SR have been implemented. * Fix formatting. * Add GusfieldIrving citation to bibliography. * Add more abstract classes (#122) * Write tests for new matching classes. * Write tests for new base class structure. * Clean up old tests. * Implement base classes for players and matchings. * Add compatability to games and hospital classes. * Update game class tests. * Catch attribute typo in supervisor. * Add compatability to other player tests. * Catch attribute typo in SR test. * Implement composite strategies for HR tests. * Update game class tests. Catch attribute typo in supervisor. Add compatability to other player tests. Catch attribute typo in SR test. * Start implementing composites with SR. * Format codebase. * Catch typo in SA tutorial. * Update classes in README * Format codebase with black>19 * Add first phase check to SR. * Fix (now-outdated) logic in tests. * Add `NoStableMatchingWarning` for SR (#131) * Add warning catcher to algorithm tests. * Add warning catcher to solver tests. * Add no solution example from GS62. * Implement `NoStableMatchingWarning` source code. * Drop CI support for 3.6 (add in 3.9) Also, run the flake8 linter. * Fix typo in CI flake8 call (snuck in last commit) * Update changelog and version number.
- Loading branch information
1 parent
c843102
commit e80f593
Showing
60 changed files
with
2,061 additions
and
1,579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
matching.algorithms package | ||
=========================== | ||
|
||
Submodules | ||
---------- | ||
|
||
matching.algorithms.hospital\_resident module | ||
--------------------------------------------- | ||
|
||
.. automodule:: matching.algorithms.hospital_resident | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matching.algorithms.stable\_marriage module | ||
------------------------------------------- | ||
|
||
.. automodule:: matching.algorithms.stable_marriage | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matching.algorithms.stable\_roommates module | ||
-------------------------------------------- | ||
|
||
.. automodule:: matching.algorithms.stable_roommates | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matching.algorithms.student\_allocation module | ||
---------------------------------------------- | ||
|
||
.. automodule:: matching.algorithms.student_allocation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
matching.algorithms.util module | ||
------------------------------- | ||
|
||
.. automodule:: matching.algorithms.util | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: matching.algorithms | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" Top-level imports for the `matching.algorithms` subpackage. """ | ||
|
||
from .hospital_resident import hospital_resident | ||
from .stable_marriage import stable_marriage | ||
from .stable_roommates import stable_roommates | ||
from .student_allocation import student_allocation | ||
|
||
__all__ = [ | ||
"hospital_resident", | ||
"stable_marriage", | ||
"stable_roommates", | ||
"student_allocation", | ||
] |
Oops, something went wrong.