Skip to content
Snippets Groups Projects
  1. Nov 09, 2018
  2. Oct 12, 2018
    • Erin (Josh) Rigler's avatar
      Add option to trim NaNs from SqDist input stream · f9d3ddb6
      Erin (Josh) Rigler authored and Claycomb, Abram Earl's avatar Claycomb, Abram Earl committed
      The SqDistAlgorithm has had an issue since first being deployed wherein its
      SV+SQ terms de-synchronized with the Dist term, which in turn led to frequent
      reinitialization in real time operations. Reinitialization requires loading
      and processing 90 days worth of data, which nullifies two major advantages of
      this recursive algorithm (i.e., small data footprint, low cpu-usage).
      
      This commit adds the ability to optionally trim NaNs off the end of the input
      stream prior to calling the 'additive' Holt-Winters exponential smoother. This
      ensures that the SV+SQ+Dist outputs are always synchronized, and that the
      `next_starttime` element of the state file used to store the state between
      calls to SqDistAlgorithm will always coincide with the beginning of the most
      recent gap in a real time data stream.
      
      Finally, this change does not address the situation where more than a single
      "end gap" within a chunk of input data exists. In such a case, the algorithm
      will still reinitialize because the `next_starttime` will not coincide with
      the beginning of this gap. If this is undesirable, the calling procedure
      should be set up such that the requested input chunks should be the same
      length as the interval since the last call to SqDistAlgorithm. This can be
      easily done given a recent commit to change the controller's `--realtime`
      option.
      f9d3ddb6
    • Erin (Josh) Rigler's avatar
      Improve --realtime option in Controller.py · 686821ee
      Erin (Josh) Rigler authored and Claycomb, Abram Earl's avatar Claycomb, Abram Earl committed
      The `--realtime` option for the Controller/CLI was previously only a
      boolean flag that specified a fixed start/end interval depending on
      the interval (minute or second). It still does this, but the user now
      has the option to pass an integer argument (e.g., `--realtime 300`)
      that allows the user to specify the number of seconds before NOW
      to consider "realtime". For a clear explanation of how this works,
      see: https://stackoverflow.com/a/34652207.
      686821ee
  3. Oct 03, 2018
  4. Oct 01, 2018
  5. Sep 12, 2018
  6. Aug 23, 2018
  7. Aug 22, 2018
  8. Aug 08, 2018
  9. Aug 07, 2018
  10. Aug 06, 2018
  11. Jul 31, 2018
  12. Jul 30, 2018
Loading