generate_tsdata

hcrystalball.utils.generate_tsdata(n_dates=365, random_state=None)[source]

Generate dummy daily time series data compatible with hcrystalball API.

Parameters
  • n_dates (int) – Number of days to be included in the data

  • random_state (int or RandomState instance) – Control random number generation following the scikit-learn pattern. Default is to use the global Numpy RNG. For reproducible results pass an int. To draw from a given RNG pass a RandomState.

Returns