floatcsep.utils.timewindows_ti

floatcsep.utils.timewindows_ti(start_date=None, end_date=None, intervals=None, horizon=None, growth='incremental', **_)[source]

Creates the testing intervals for a time-independent experiment.

Note

The following argument combinations are possible:
  • (start_date, end_date)

  • (start_date, end_date, timeintervals)

  • (start_date, end_date, timehorizon)

  • (start_date, timeintervals, timehorizon)

Parameters:
  • start_date (datetime.datetime) – Start of the experiment

  • end_date (datetime.datetime) – End of the experiment

  • intervals (int) – number of intervals to discretize the time span

  • horizon (str) – time length of each interval

  • growth (str) – incremental or cumulative time windows

Returns:

List of tuples containing the lower and upper boundaries of each testing window, as datetime.datetime.