Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate mape python

def mean_absolute_percentage_error(y_true, y_pred): 
    y_true, y_pred = np.array(y_true), np.array(y_pred)
    return np.mean(np.abs((y_true - y_pred) / y_true)) * 100
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculate #mape #python
ADD COMMENT
Topic
Name
8+3 =