Skip to content

Conversation

@brhooper
Copy link
Contributor

@brhooper brhooper commented Jan 20, 2026

Addresses https://github.com/metoppv/mo-blue-team/issues/991

This PR adds provides additional functionality to the internal TrainGAMsForSAMOS class. At the moment, this class includes a method which calculates means and standard deviations via a rolling window calculation over the training data. This method uses a centred rolling window, so that the result of the calculation is assigned to the central datetime in that window. This PR adds the option of using a 'trailing' rolling window instead, so that the result of the calculation is assigned to the end of the window.

The new functionality is exposed in related CLIs through a new rolling_window_type option. The default behaviour throughout is to use the centered rolling window.

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant