mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-09 17:11:05 +00:00
feat(Models): added MAE & RMSE metrics, fixed NaN & Inf values in data,
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import numpy as np
|
||||
|
||||
def rolling_window(a, window):
|
||||
shape = a.shape[:-1] + (a.shape[-1] - window + 1, window)
|
||||
strides = a.strides + (a.strides[-1],)
|
||||
return np.lib.stride_tricks.as_strided(a, shape=shape, strides=strides)
|
||||
Reference in New Issue
Block a user