https://github.com/nixtla logo
#general
Title
# general
m

Mark

07/20/2023, 1:44 PM
Sanity check me here, these are defined correctly yes?
Copy code
def mape(y, y_hat):
    return np.mean(np.abs((y - y_hat) / y)) * 100

def smape(y, y_hat):
    return 100/len(y) * np.sum(2 * np.abs(y_hat - y) / (np.abs(y) + np.abs(y_hat)))