Skip to content
Permalink
Browse files

Update 2018-04-19-linear-model-custom-loss-function-regularization-py…

…thon.md
  • Loading branch information
alexmill committed Jul 30, 2019
1 parent 546f1d7 commit d78fec00531724ca1f85a295daf1c8a4730a9adf
@@ -80,7 +80,7 @@ In Python, the MAPE can be calculated with the function below:


```python
def mean_absolute_percentage_error(y_true, y_pred, sample_weights=None):
def mean_absolute_percentage_error(y_pred, y_true, sample_weights=None):
y_true = np.array(y_true)
y_pred = np.array(y_pred)
assert len(y_true) == len(y_pred)

0 comments on commit d78fec0

Please sign in to comment.
You can’t perform that action at this time.