Skip to content

Instantly share code, notes, and snippets.

View pignuante's full-sized avatar
😭
I may be slow to respond.

Pignu pignuante

😭
I may be slow to respond.
View GitHub Profile
@bshishov
bshishov / forecasting_metrics.py
Last active April 20, 2024 04:29
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
@saleph
saleph / msgbox.py
Last active November 3, 2019 13:09
[qt5] handling close event - msg box
__author__ = "tom"
import sys
from PyQt5.QtWidgets import QWidget, QMessageBox, QApplication
class Example(QWidget):
def __init__(self):
super().__init__()
self.init_ui()