time_points_generator#

Generator that generates a specific amounts of time points.

class TimePointsGenerator(sm: SystemModelInterface)#

Bases: object

Defines how to generator time points from a Prediction Task.

Initializes the TimePointsGenerator.

Parameters:

sm – A SystemModel, for which the signals should be built.

generate_timepoints(number_of_timepoints: int = 10, save_dir: str = './data/') None#

Generates a specific amount of time points.

Parameters:
  • number_of_timepoints – The number of time points that should be generated.

  • save_dir – The name of the directory to save the data. Default is ‘./data/’.

Raises:

ValueError – If the number of time points the user wants generate is negative.