Hey, maybe you can help me here: I use Auto-NHITS...
# neural-forecast
p
Hey, maybe you can help me here: I use Auto-NHITS with the standard parameters to forecast the following timeseries: Unfortunately, I get an MAPE of 35%. With which parameters should I play to increase the accuracy?
f
I don't know your data but MAPE is not a good measure to use specially if your data has values close to zero in some regions. No matter what your absolute error is, you will be dividing by zero or something very close to zero and you may end up with large numbers. I had the same issue and I moved away from MAPE and started using MAE to understand the performance of my models.
p
So this is just the training data, not the evaluation data. Nevertheless, do you have any experiences for the hyperparameters? Also from my experience, exogenious variables have nearly no effect or even worsen the results
c
Hi @Pascal Schindler. The spikes of the time series appear to be somehow random. No model will be able to predict those spikes without additional information. The high MAPE might be driven by those unpredictable spikes. I also recommend you to fit simpler models as baselines from
statsforecast
.
💯 1
f
@Pascal Schindler as Cristian suggested, the spikes will be hard to predict. If you don't care about the spikes (i.e., you can consider them outliers), then you can use moving averages to smooth them out or if you work with frequency techniques, you can use a low pass filter to remove them. That or find a feature that is correlated with the spikes.
c
Looks a lot like power prices, in which case add the reserve margin features and a ton of planned transmission outages 🥸
p
It is actually sales data of an e-commerce brand
Must be website traffic that leads to the spikes
k
Hey @Pascal Schindler, We recently included a HuberLoss function that is robust to outliers: - https://nixtla.github.io/neuralforecast/losses.pytorch.html#huberloss Another idea is to try gradient clipping. Or preprocessing to skip the outliers. Let us know if the HuberLoss helps you.
👀 1
Hey @Pascal Schindler, We just recently added also HuberMQLoss and this [robust regression tutorial](https://nixtla.github.io/neuralforecast/examples/robust_regression.html). Let us know if they help