microsoft/forecasting

[FEATURE] Evaluation metrics to support any iterables

loomlike opened this issue · 2 comments

Description

Current metrics only support pd.series.
Would be nice to work w/ any kinds of iterables like np.array, list, etc.

Expected behavior with the suggested feature

E.g.,

def MAPE(predictions, actuals):
    predictions = np.array(predictions)
    actuals = np.array(actuals)
    
    # mape calculation here
    np.absolute(predictions-actuals)  ...

@loomlike, good catch, will work on this.

Addressed in PR #158