Skip to content

Conversation

valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Sep 30, 2025

This commit updates the CTimeSeriesDecompositionDetail class to reset prediction error statistics and clear the trend model when significant changes in seasonal components are detected. This ensures that the model does not rely on outdated polynomial trend extrapolations when seasonality re-emerges.

Fixes #2772

This commit introduces a new unit test file, MyForecastTest.cc, which includes tests for the anomaly detection with forecast functionality. Additionally, a CSV test data file, doc_count_intput.csv, is added to support the tests. The CMakeLists.txt is updated to include the new test source file.
… seasonality changes

This commit updates the CTimeSeriesDecompositionDetail class to reset prediction error statistics and clear the trend model when significant changes in seasonal components are detected. This ensures that the model does not rely on outdated polynomial trend extrapolations when seasonality re-emerges.
@prodsecmachine
Copy link

prodsecmachine commented Sep 30, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@valeriy42 valeriy42 marked this pull request as draft September 30, 2025 10:08
@valeriy42 valeriy42 self-assigned this Sep 30, 2025
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
6 New issues
2 New Major Issues (required ≤ 0)
1 New Critical Issues (required ≤ 0)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Forecasting trend is unexpected given data
2 participants