Skip to content

Instantly share code, notes, and snippets.

View gazihasanrahman's full-sized avatar

Gazi Hasan Rahman gazihasanrahman

View GitHub Profile
@bshishov
bshishov / forecasting_metrics.py
Last active January 27, 2025 21:48
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