(forecast: Forecast, target: Target)
return 100 * np.abs(forecast - target) / target
MAPE loss as defined in: https://en.wikipedia.org/wiki/Mean_absolute_percentage_error

    :param forecast: Predicted values.
    :param target: Target values.
    :return: Same shape array with error calculated for each time step
MAPE loss as defined in: https://en.wikipedia.org/wiki/Mean_absolute_percentage_error
MAPE loss as defined in : https : // en . wikipedia . org / wiki / Mean_absolute_percentage_error
def mape(forecast: Forecast, target: Target) -> np.ndarray:
    """
    MAPE loss as defined in: https://en.wikipedia.org/wiki/Mean_absolute_percentage_error

    :param forecast: Predicted values.
    :param target: Target values.
    :return: Same shape array with error calculated for each time step
    """
    return 100 * np.abs(forecast - target) / target
def mape ( forecast : Forecast , target : Target ) -> np . ndarray : return 100 * np . abs ( forecast - target ) / target