diff options
author | Andrew Maguire <andrewm4894@gmail.com> | 2022-04-29 09:25:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 09:25:40 +0100 |
commit | 3f45709706a59b431b76443b0fbe23c9115768a8 (patch) | |
tree | 74c0549a98819d34971cbce9fdef21d9faeef83d /ml/Config.cc | |
parent | 3cdc388888da9da25e8ca60770070d1daa813877 (diff) |
some config updates for ml (#12771)
- set `dbengine anomaly rate every` to 30 by default to provide better sorting functionality for anomaly advisor.
- increase upper clamp on `MaxTrainSamples` to 24 hours for those who might like a larger training window on a parent.
- decrease lower clamp on `MinTrainSamples` to 15 minutes to enable faster training of initial models.
Diffstat (limited to 'ml/Config.cc')
-rw-r--r-- | ml/Config.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ml/Config.cc b/ml/Config.cc index 99109e05fd..951cc039f2 100644 --- a/ml/Config.cc +++ b/ml/Config.cc @@ -32,7 +32,7 @@ void Config::readMLConfig(void) { unsigned MinTrainSamples = config_get_number(ConfigSectionML, "minimum num samples to train", 1 * 3600); unsigned TrainEvery = config_get_number(ConfigSectionML, "train every", 1 * 3600); - unsigned DBEngineAnomalyRateEvery = config_get_number(ConfigSectionML, "dbengine anomaly rate every", 60); + unsigned DBEngineAnomalyRateEvery = config_get_number(ConfigSectionML, "dbengine anomaly rate every", 30); unsigned DiffN = config_get_number(ConfigSectionML, "num samples to diff", 1); unsigned SmoothN = config_get_number(ConfigSectionML, "num samples to smooth", 3); @@ -58,8 +58,8 @@ void Config::readMLConfig(void) { * Clamp */ - MaxTrainSamples = clamp(MaxTrainSamples, 1 * 3600u, 6 * 3600u); - MinTrainSamples = clamp(MinTrainSamples, 1 * 3600u, 6 * 3600u); + MaxTrainSamples = clamp(MaxTrainSamples, 1 * 3600u, 24 * 3600u); + MinTrainSamples = clamp(MinTrainSamples, 1 * 900u, 6 * 3600u); TrainEvery = clamp(TrainEvery, 1 * 3600u, 6 * 3600u); DBEngineAnomalyRateEvery = clamp(DBEngineAnomalyRateEvery, 1 * 30u, 15 * 60u); |