Skip to content

Instantly share code, notes, and snippets.

View ryanholbrook's full-sized avatar

Ryan Holbrook ryanholbrook

View GitHub Profile
@ryanholbrook
ryanholbrook / forecasting_metrics.py
Last active May 12, 2021 13:31 — forked from bshishov/forecasting_metrics.py
Python Numpy functions for most common forecasting metrics
import numpy as np
EPSILON = 1e-10
def _error(actual: np.ndarray, predicted: np.ndarray):
""" Simple error """
return actual - predicted