microsoft / forecasting

Time Series Forecasting Best Practices & Examples

Home Page:https://microsoft.github.io/forecasting/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Evaluation metrics to support any iterables

loomlike opened this issue · 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