-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature baseline and evaluation (#50)
* Add stats property to mon * Small additions in player and PNI logging * Add damage multiplier method to pokemon * Add MaxBasePowerPlayer to player.baselines * Add SimpleHeuristicsPlayer * Add comment in readme code example * Add format property to Player * Add battle against method to Player object * Add pretty format json pre-commit * Add evaluate_player function - Add evaluate function for estimate relative player strength in a comparable way - Add helper function _estimate_strength_from_result - Add corresponding _EVALUATION_RATINGS dictionnary containing data used to compute ratings - Add simple unit tests for edge cases and helper function * Use math.* instead of np.* in player.utils * Add edge case unit test for player evaluation (inf value) * Add unit test for max base power player * Add Pokemon.damage_multiplier unit test * Add unit test for SimpleHeuristicPlayer._estimate_matchup * Add SimpleHeuristicPlayer._should_dynamax unit test * Expand SimpleHeuristicPlayer unit tests * Update examples and doc with battle_against method instead of cross_evaluations
- Loading branch information
Showing
16 changed files
with
693 additions
and
46 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
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.