salesforce / Merlion

Merlion: A Machine Learning Framework for Time Series Intelligence
BSD 3-Clause "New" or "Revised" License
3.43k stars 302 forks source link

Declare class fields for DetectorConfig. #99

Closed aadyotb closed 2 years ago

aadyotb commented 2 years ago

Previously, the instance fields enable_threshold and enable_calibrator were not declared at the class level. This made them inaccessible when instantiating layered models. This PR fixes the issue.