-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New loss functions and metrics (#238)
* Split metrics and loss functions off of utils * Initial add of f1 and mcc metrics * Add metrics args * Set f1 for multiclass to use micro averaging * Change args input and of loss function and get_loss_func * Remove data_weight as a default datapoint attribute * Add f1, mcc, and bounded_mse loss functions * Correct multiclass mcc loss * Add get data functions for inequality targets * Add bounded metrics * Disable f1 loss function * Update readme * Move loss_functions and metrics into train directory * Fix import error * New loss function gpu support * Correct a vector dimension error * Add inequalities to get_data function * More compact argument spacing in test_integration * Overwrite the loss_function default None * Correct errors in mcc loss implementation * Add testing for mcc and bounded_mse losses * Make bounded_mse default metric when used as loss function * Fix variable argument name in get_data * Remove f1 as a loss function altogether * Fix multiclass mcc dimensionality * Description for loss functions and small dimensionality change for mcc
- Loading branch information
Showing
16 changed files
with
1,910 additions
and
467 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
Oops, something went wrong.