Skip to content

Commit

Permalink
fix: the type hint of normalize_base should be Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored and juaduan committed Jul 8, 2024
1 parent 8a6c391 commit f52687f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anomaly_detector/multivariate/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ---------------------------------------------------------

from dataclasses import dataclass
from typing import List
from typing import List, Optional


class MultiADConstants:
Expand Down Expand Up @@ -47,6 +47,6 @@ class MultiADConfig:
save: str = "model"
train_ratio: float = 0.8
val_ratio: float = 0.1
normalize_base: NormalizeBase = None
normalize_base: Optional[NormalizeBase] = None
threshold_window: int = MultiADConstants.DEFAULT_THRESHOLD_WINDOW
level: float = 0.8

0 comments on commit f52687f

Please sign in to comment.