OzWrapper.OzAnomaly.data_provider.DataProvider¶
- class OzWrapper.OzAnomaly.data_provider.DataProvider¶
Bases:
digraph inheritance4b3bb3efde { bgcolor=transparent; rankdir=TB; ratio=compress; size="8.0, 6.0"; "ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor="#e8f4f8",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="filled,rounded",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "DataProvider" [URL="DataProvider.html#OzWrapper.OzAnomaly.data_provider.DataProvider",fillcolor="#e8f4f8",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="filled,rounded",target="_top",tooltip="Supplies recent sensor data to the anomaly detector."]; "ABC" -> "DataProvider" [arrowhead=empty,arrowsize=0.8,style="setlinewidth(0.5)"]; }abc.ABCSupplies recent sensor data to the anomaly detector.
- abstractmethod get_window(hours: int) Window | None¶
Return the last
hoursof sensor data as a column-oriented dict.- Parameters:
hours – Length of the window to return (typically 24 or 48).
- Returns:
Dict mapping each parameter code to a numpy array of the same length, or
Noneif insufficient data is available.
- __slots__ = ()¶