A basic architecture for time series forecasting.
horizon, lookback = 10,20
items = dummy_data_generator(75, 10, nrows=10)
data = TSDataLoaders.from_items(items, horizon = horizon, lookback=lookback, step=3, valid_pct=.5
)
data.show_batch()
learn = nbeats_learner(data, metrics = NBeatsLossPart(0,-9,'Last'))
learn.fit_flat_cos(5, 3e-2)
learn.recorder.plot_loss()
learn.recorder.plot_sched()
learn.show_results()
learn.show_results(0)
learn.n_beats_attention.means()