old_scripts/info_reduc.py
def mean_absolute_percentage_error(true, pred):
    """
    Given 2 vectors of values, true and pred, calculate the MAP error

    """

    mape = np.mean(np.abs((true - pred) / true)) * 100

    return mape

    Given 2 vectors of values, true and pred, calculate the MAP error

    
Given 2 vectors of values, true and pred, calculate the MAP error
Given 2 vectors of values true and pred calculate the MAP error
def mean_absolute_percentage_error(true, pred):
    mape = np.mean(np.abs((true - pred) / true)) * 100
    return mape
def mean_absolute_percentage_error ( true , pred ) : mape = np . mean ( np . abs ( ( true - pred ) / true ) ) * 100 return mape
Given 2 vectors of values, true and pred, calculate the MAP error
Given 2 vectors of values true and pred calculate the MAP error
"""
    Given 2 vectors of values, true and pred, calculate the MAP error

    """
true
pred