Answers for "calculate mape python"

0

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
Posted by: Guest on July-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language