-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* small changes so torch tensors are compatible with existing code * rename previous unit tests as test_basic.py * add optional torch dependency * add numpy as optional dependency to avoid torch warning * add Optimizer class * temporarily export Optimizer class unconditionally * add a file for optimizer unit tests * add job for unit test gh workflow for optimizer * fix linting errors * test_optimizer job should run all unit tests * provide alternative class definition for Optimizer if torch is not installed * add pandas as a dev dependency * install pandas in test_optimizer job * add josh's (my) anki review logs from 1711744352250 to 1728234780857 for optimizer unit test * add more optimizer unit tests * reduce duplication of default parameters * compare optimal parameters to expected parameters using numpy.allclose to pass on multiple machines * add some documentation to optimizer unit tests * add poetry as dev dependency * format code * add section for Optimizer in README * add note about python versions when installing dev dependencies * card ids are now epoch microseconds * store card_id in ReviewLog object rather than copy of Card object * bump version to 5.0.0rc1 for pre-release * add myself (josh) to list of authors in pyproject.toml * card ids are once again milliseconds * add note about batch card creation in README to avoid card id collisions * bump version -> 5.0.0 for release * move Optimizer class to its own file * convert DEFAULT_PARAMETERS to tuple * add short docstring to top of optimizer module * Optimizer.compute_optimal_parameters should return mutable list
- Loading branch information
1 parent
dd1e48e
commit 4daa566
Showing
10 changed files
with
13,257 additions
and
45 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
Oops, something went wrong.