[2]:
# Import to be able to import python package from src
import sys
sys.path.insert(0, '../src')
[3]:
import pandas as pd
import numpy as np
import ontime as on
The `LightGBM` module could not be imported. To enable LightGBM support in Darts, follow the detailed instructions in the installation guide: https://github.com/unit8co/darts/blob/master/INSTALL.md
The `Prophet` module could not be imported. To enable Prophet support in Darts, follow the detailed instructions in the installation guide: https://github.com/unit8co/darts/blob/master/INSTALL.md
Generators#
Generators allow you to create a type of TimeSeries that is generated automatically. A generated TimeSeries generally has some specific characteristics, like being constant or random.
Constant time series#
[8]:
on.generators.constant().generate(1, pd.Timestamp('2022-01-01'), pd.Timestamp('2022-12-31')).plot();
Gaussian Noise TimeSeries#
[9]:
on.generators.gaussian().generate(start=pd.Timestamp('2022-01-01'), end=pd.Timestamp('2022-12-31')).plot();
Random Walk Time Series#
[10]:
on.generators.random_walk().generate(start=pd.Timestamp('2022-01-01'), end=pd.Timestamp('2022-12-31')).plot();
[ ]: