-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: First class predictions (#187)
* add base benchmark predictions class, move tests * wip, validations working * trying to make types work with arbitrary incoming values * fix equality checking issue in test. closes #169. * add serializer to predictions * remove separate competition predictions * update evaluation usage to work with benchmark predictions instance * update test set generation for evaluation * run ruff autoformatting * Update polaris/utils/types.py Nicer union syntax Co-authored-by: Cas Wognum <caswognum@outlook.com> * Update polaris/utils/types.py Co-authored-by: Cas Wognum <caswognum@outlook.com> * wip * add small docstring, allow string predictions * safely get predictions in evaluation if available * pass test set names to predictions and check for validity * simplify safe_mask * fix bad docstring path * Reintroduce the CompetitionPredictions class because it includes additional metadata * Add back the CompetitonPredictions to the docs * Reordered docs * Improved documentation and changed logic to disallow some edge cases * Fixed docs * Remove print statement * Reorganize code * Simplified evaluation logic * Address all PR feedback * Add extra test case * Addressed PR feedback * Fix type hint and fix model validator definition * Fix import --------- Co-authored-by: Kira McLean <kiramclean@users.noreply.github.com> Co-authored-by: Cas Wognum <caswognum@outlook.com>
- Loading branch information
1 parent
225b405
commit 5eee7ea
Showing
17 changed files
with
650 additions
and
239 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
Oops, something went wrong.