Skip to content

Commit 28ab8a4

Browse files
committed
Merge branch 'master' of https://github.com/Humzafazal72/Python
2 parents f7d9fe2 + 7cbb3ec commit 28ab8a4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

machine_learning/loss_functions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import numpy as np
22

33

4-
def mean_absolute_percentage_error(
5-
y_true: np.ndarray,
6-
y_pred: np.ndarray
7-
) -> float:
4+
def mean_absolute_percentage_error(y_true: np.ndarray, y_pred: np.ndarray) -> float:
85
"""
96
Calculate the Mean Absolute Percentage Error between y_true and y_pred.
107
@@ -56,7 +53,6 @@ def mean_absolute_percentage_error(
5653
raise e
5754

5855

59-
6056
def binary_cross_entropy(
6157
y_true: np.ndarray, y_pred: np.ndarray, epsilon: float = 1e-15
6258
) -> float:

0 commit comments

Comments
 (0)