Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement top-k multiclass error metric. Add new parameter top_k_threshold. * Add test for multiclass metrics * Make test less sensitive to avoid floating-point issues. * Change tabs to spaces. * Fix problem with test in Python 2. Refactor to use np.testing. Decrease number of training rounds so loss is larger and easier to compare. * Move multiclass tests into test_engine.py * Change parameter name from top_k_threshold to multi_error_top_k. * Fix top-k error metric to handle case where scores are equal. Update tests and docs. * Change name of top-k metric to multi_error@k. * Change tabs to spaces. * Fix formatting. * Fix minor issues in docs.
- Loading branch information
1 parent
19de2be
commit b3db9e9
Showing
5 changed files
with
100 additions
and
15 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