Jonathan Mackenzie
04/24/2025, 4:49 AMnf.core.NeuralForecast.fit()
, is there a reason we cannot set the size of the test set?Marco
04/24/2025, 1:39 PMfit
method expects data for training only, not the entire dataset. So, it's a bit like in sklearn, we do a train/test split first, then we past the training data to the fit
method.
You can specify a validation size if you want to early stop, using the val_size
parameter.Jonathan Mackenzie
04/28/2025, 2:52 AMJonathan Mackenzie
04/28/2025, 3:36 AMfrom pytorch_lightning.loggers import TensorBoardLogger
tb_logger = TensorBoardLogger(save_dir="tb_logs", name="tb_logs")
nf = NeuralForecast(models=[NHITS(..., logger=tb_logger)])
nf.fit(...)
Then in another shell:
tensorboard --logdir ./tb_logs