Skip to content

Commit 6d603a2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 10be78a commit 6d603a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

machine_learning/loss_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ def log_cosh_loss(y_true: np.ndarray, y_pred: np.ndarray) -> float:
750750
# Alternatively, use stable version:
751751
loss = np.logaddexp(errors, -errors) - np.log(2)
752752
return np.mean(loss)
753+
754+
753755
if __name__ == "__main__":
754756
import doctest
755757

0 commit comments

Comments
 (0)