-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Hello Petronio,
I am testing the fuzzy time series model to forecast one period ahead of a time series with order 12. I am starting with a basic model: using a 20-grid partitioner, mf = triangle, chen model.
My code is:
ts = datos['y'].dropna().to_numpy()
fs = Grid.GridPartitioner(data = ts, npart = 20)
model = chen.ConventionalFTS(partitioner = fs)
model.fit(ts, order = 15)
forecast = model.predict(ts)
I'm getting a forecast array which length = len(ts), I have checked other posts, and I realized that the result is the one-step ahead forecast for each period, i.e. forecast[0] is the prediction that compares with ts[1] , forecast[1] is the prediction that compares with ts[2]...
My question here is: how I am getting a result in the first 12 values, since my model's order is 12?
These are the first 12 values that I am getting:
[0.3270031616601807,
0.3270031616601807,
0.3270031616601807,
0.3270031616601807,
0.09897023952868034,
0.3270031616601807,
0.3270031616601807,
0.09897023952868034,
-0.28108463069048684,
-0.2810846306904869,
0.09897023952868034,
0.3270031616601807,
...]
Thanks for the help