Skip to content

Commit e14c8ec

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 551697a commit e14c8ec

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
@@ -662,6 +662,7 @@ def kullback_leibler_divergence(y_true: np.ndarray, y_pred: np.ndarray) -> float
662662
kl_loss = y_true * np.log(y_true / y_pred)
663663
return np.sum(kl_loss)
664664

665+
665666
def root_mean_squared_error(y_true: np.array, y_pred: np.array) -> float:
666667
"""
667668
Root Mean Squared Error (RMSE)
@@ -697,6 +698,7 @@ def root_mean_squared_error(y_true: np.array, y_pred: np.array) -> float:
697698
mse = np.mean((y_pred - y_true) ** 2)
698699
return np.sqrt(mse)
699700

701+
700702
if __name__ == "__main__":
701703
import doctest
702704

0 commit comments

Comments
 (0)