-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding _check_inputs() for error calculation functions (#279)
* feat: add _check_inputs() for all error metric calculation functions; * fix: use corresponding lib to detect NaN, otherwise loss calculation during torch training will raise error... RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead. * fix: don't check shapes for CRPS calc funcs;
- Loading branch information
Showing
1 changed file
with
151 additions
and
77 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