Skip to content

Instantly share code, notes, and snippets.

View fkivela's full-sized avatar

Feliks Kivelä fkivela

  • Espoo, Finland
View GitHub Profile
@fkivela
fkivela / forecasting_metrics.py
Last active October 22, 2024 11:16 — 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