summaryrefslogtreecommitdiffstats
path: root/ml/Dimension.h
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2022-03-30 13:38:18 +0300
committerGitHub <noreply@github.com>2022-03-30 13:38:18 +0300
commit41a40dc3a406c3c8dc70f41038e7d75ef2601f8b (patch)
treed889c164f2be7588a4c5940cf777ccd94cb39e7a /ml/Dimension.h
parentffee2317885bf8ceab7224ba23aad08421986cd5 (diff)
ML-related changes to address issue/discussion comments. (#12494)
* Increase training thread's max sleep time. With this change we will only cap the allotted time when it is more than ten seconds. The previous limit was one second, which had the effect of scheduling dimensions near the beggining of each training window. This was not desirable because it would cause high CPU usage on parents with many children. * Only exclude netdata.* charts from training. * Use heartbeat in detection thread. * Track rusage of prediction thread. * Track rusage of training thread. * Add support for random sampling of extracted features. * Rebase * Skip RNG when ML is disabled and fix undef behaviour
Diffstat (limited to 'ml/Dimension.h')
-rw-r--r--ml/Dimension.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h
index 01cb4ef63f..44b348e9b2 100644
--- a/ml/Dimension.h
+++ b/ml/Dimension.h
@@ -76,10 +76,6 @@ public:
bool isTrained() const { return Trained; }
- double updateTrainingDuration(double Duration) {
- return TrainingDuration.exchange(Duration);
- }
-
private:
std::pair<CalculatedNumber *, size_t> getCalculatedNumbers();
@@ -94,7 +90,6 @@ private:
KMeans KM;
std::atomic<bool> Trained{false};
- std::atomic<double> TrainingDuration{0.0};
};
class PredictableDimension : public TrainableDimension {