File size: 467 Bytes
b0add2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Data models for the synthetic stream."""

from dataclasses import dataclass
from typing import Literal

Label = Literal["normal", "point_anomaly", "contextual_anomaly"]
Phase = Literal["A", "B", "C"]


@dataclass(frozen=True)
class Observation:
    """A single multivariate sensor observation with ground truth label and stream phase."""

    timestamp: float
    temperature: float
    pressure: float
    vibration: float
    label: Label
    phase: Phase = "A"