floatcsep.utils.timewindows_td

floatcsep.utils.timewindows_td(start_date=None, end_date=None, timeintervals=None, timehorizon=None, timeoffset=None, **_)[source]

Creates the testing intervals for a time-dependent experiment.

Note

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

  • (start_date, end_date, timehorizon)

  • (start_date, timeintervals, timehorizon)

  • (start_date, end_date, timehorizon, timeoffset)

  • (start_date, timeinvervals, timehorizon, timeoffset)

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

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

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

  • timehorizon (str) – time length of each time window

  • timeoffset (str) – Offset between consecutive forecast. if None or timeoffset=timehorizon, windows are non-overlapping

Returns:

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