# neural-forecast

- c
Chris Gervais

10/04/2022, 7:41 PMwhat's the recommended way to generate a prediction dataframe in

? it looks like we should always be using the`v1.0.0`

wrapper now instead of using the model predict methods directly - is that correct?`core.NeuralForecast`

kfm- 4
- 8

- m
Max (Nixtla)

10/04/2022, 10:30 PMHi <!channel>: We have been working on a new version of NeuralForecast to make usage easier. We would love for you to play around and tell us if you want or need something.**New Exciting Features:*** Updated Getting Started: https://nixtla.github.io/neuralforecast/examples/getting_started_with_nbeats_and_nhits.html * Unified interface for training and predicting * Classes for automatic hyperparameter optimization for different models: https://nixtla.github.io/neuralforecast/models.html * Multi Quantile Forecast * Out of the Box GPU Support * Unified Datasets/Dataloader class for all models * Support for different hyperopt backends * Pytorch lighting support🙌 6 - k
kushagra kumar

10/13/2022, 2:14 PMHello All, Can we use the Global models (N-BITS, N-HITS, etc.) for the multiple irregular time series?c- 2
- 6

- v
virgilio espina

10/18/2022, 4:31 AMhello. how do i perform nbeats and nhits multivariate time series?c- 2
- 4

- m
Muhammad Hasnain Khan

11/07/2022, 12:36 PMHey everyone, this is Hasnain. I hope everyone is doing well. I am working a regression problem with around 60-70 features and have around 2 Million plus data points and one target. I am searching for a high level wrapper for regression problem where I can do experiments with different architectures such as with different backbones to extract features and heads for regression. If there is any open source library then please let me know. Thanksk- 2
- 2

- c
Chris Gervais

11/08/2022, 11:18 AMbtw we’re starting to get some pretty conclusive results re: neuralforecast performance as benchmarked against xgboost, catboost, lightgbm etc.**@Valeriy**not sure if you’ve had a chance to wrap up your analysis but seems pretty clear at this point the conclusion from https://arxiv.org/abs/2106.03253 is bogus👍 2v- 2
- 7

- v
Valeriy

11/08/2022, 11:22 AMToo much work recently**@Chris Gervais**so not much time but will be soon starting forecasting project so will pickup again. What DL model is shining?🙌 2 - c
Chris Gervais

11/08/2022, 11:26 AMI can imagine, especially with all the CP excitement! we’re finding consistent lift from both nbeatsx and nhits implementations.👀 2me- 3
- 3

- e
Eric Braun

11/21/2022, 5:32 PMGreetings! Two questions about the excellent neuralforecast packages. 1. Embeddings for categorical variables appear to have been deprecated. Is this temporary? If not, why was this choice made? 2. Are there plans to introduce probabalistic losses for count targets? (i.e. negative binomial, tweedie distributions for count valued time series).🎉 1k- 2
- 11

- j
J T

11/23/2022, 2:31 PMHappy holidays! Can you help me understand how to use nbeats and nhits? as you can see, i have a time series and both models not recognizing the seasonalities. but the autoarima in Nixtla works well with the same data. here is the code for the two models. anything i need to change? #note: horizon = 12 month, it’s at the beginning of the month like ‘2022-02-01’ models = [NBEATS(input_size=2 * horizon, h=horizon, max_epochs=50), NHITS(input_size=2 * horizon, h=horizon, max_epochs=50)] nforecast = NeuralForecast(models=models, freq=‘MS’)k- 2
- 7

- j
J T

11/23/2022, 2:32 PM🦃 🎉😂 3 - m
Muhammad Hasnain Khan

12/07/2022, 10:40 AMGreetings!, I hope everyone is doing well. I am working on a regression problem and I am looking forward to use Transformers for it but before jumping into the implementation and all stuff, I am curious that did any of you use transformers for regression problem. I have around 90 features (floating points) and one target. I couldn't find any paper on transformers for regression problems so please let me know if any of you used transformers for this purpose.ak- 3
- 8

- c
Chris Gervais

12/13/2022, 9:05 PMthe Nixtla premium: NHiTS from

consistently outperforming NHiTS from`neuralforecast`

in the wild lol`pytorch-forecasting`

🙌 4k- 2
- 3

- t
Tomasz

12/20/2022, 1:18 PMHi everyone, I really appreciate your great work with neuroforecast ! I am missing in the documentation information on how to use future, lagged and static exogenous variables. Do you have any example?c- 2
- 2

- e
Eric Braun

12/27/2022, 9:43 PMI have a question about the default scaling behavior. Are exogenous features scaled automatically based on "scaler_type", or just the targets?c- 2
- 2

- a
Arona Ben Cherif DIATTA

12/30/2022, 5:34 PMHi, I'm quite new to nixtla, could someone help me to create a comparison model between TFT and AutoARIMA on my data by cross-validation?k- 2
- 2

- m
Mads Jensen

01/04/2023, 6:56 PMHi. I am new to the neural-forecast package, so I am sorry if I missed it somewhere. Is there a way to set assumption about seasonality for the AutoNHITS? Would it be “n_harmonic” set in the config object passed?k- 2
- 3

- a
Andrei Tulbure

01/04/2023, 10:01 PMHi! What would be the best way to use a NeuralForecast object to test out predictions from AutoTFT, AutoNBEATS, Auto NHiTs? I do see a cross validation module which is great but I do not see any .Forecast method. Should I only use .predict () ?k- 2
- 5

- m
Mads Jensen

01/05/2023, 11:13 AMHi 🙂. Is there a way to set the number of stacks or is that fixed?k- 2
- 2

- c
Chris Gervais

01/06/2023, 2:19 PMI'm trying to compare our hand-rolled cross-validation methods (which uses

) with the`sktime`

native cross-validation but we're running into a merge issue. The culprit seems to be in the core`neuralforecast`

class here:`NeuralForecast`

Copy code

and the actual error appears to be related to index types that don't match:`--------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[56], line 1 ----> 1 nf.cross_validation(df=df, static_df=static_df, val_size=val_size) File ~/Desktop/rtobots/.venv/lib/python3.9/site-packages/neuralforecast/core.py:386, in NeuralForecast.cross_validation(self, df, static_df, n_windows, step_size, val_size, test_size, sort_df, verbose, **data_kwargs) 383 fcsts_df = pd.concat([fcsts_df, fcsts], axis=1) 385 # Add original input df's y to forecasts DataFrame --> 386 fcsts_df = fcsts_df.merge(df, how="left", on=["unique_id", "ds"]) 387 return fcsts_df`

Copy code`ValueError: You are trying to merge on datetime64[ns] and object columns. If you wish to proceed you should use pd.concat`

*Replication:*• using the exogenous tutorial here https://nixtla.github.io/neuralforecast/examples/exogenous_variables.html • replacing the

code chunk with`.fit()`

`.cross_validation(df=df, static_df=static_df, val_size=int(len(df) * .2))`

k- 2
- 11

- a
Arona Ben Cherif DIATTA

01/08/2023, 1:27 PMHi can someone help me understand why my TFT model (AutoTFT) never ends compiling on my data while it works fine with AutoNheats from NHITS ? Please 🙏k- 2
- 2

- v
virgilio espina

01/18/2023, 9:15 AMHello, May I know what is "unique_id" and how it is being generated in the datasets? Thank you.cf- 3
- 3

- v
Vishwa Brungi

01/19/2023, 6:01 PMHi, Can someone help me how to use

to forecast into the future/unseen/out-sample dates?`neuralforecast`

mk- 3
- 3

- m
Majid Yazdani

01/27/2023, 2:44 PMHi guys, thanks for the exciting library. I have a question about exogenous variables with different time internals; Let's say I have two past exogenous variables, one is daily, and another one is monthly, and my target is also daily. Would it be possible to use these two variables as past exogenous variables in the neural models? for example, in the case of the TFT model. If this is possible, I wonder how this is done under the hood. If first needs some data processing to align the time intervals, do you have some ideas how this should be done? Thanksc- 2
- 3

- v
Vishwa Brungi

01/31/2023, 4:32 PMHi, can someone help me on saving/viewing the predictions on the historical dataset? Whenever I use

, it's forecasting into the future. I also want to look at the historical predictions of the model.`.predict()`

c- 2
- 6

- k
kushagra kumar

02/04/2023, 9:59 AMHi Team, Apart from N-BEATS and related models like N-HiTS and N-BITSX, are there any other models or family of models that can be used as a Global time-series model i.e. train on multiple time series to forecast single time series?c- 2
- 1

- k
kushagra kumar

02/04/2023, 10:24 AMHello, I am trying to run the tutorial https://colab.research.google.com/github/Nixtla/neuralforecast/blob/main/nbs/examples/IntermittentData.ipynb on my local windows machine. I have installed all the necessary packages on a clean python virtual env using

cmd. I am getting the below error:`pip install neuralforecast statsforecast s3fs fastparquet`

Copy code

Can someone please help. python version is`from neuralforecast.losses.pytorch import DistributionLoss ImportError: cannot import name 'DistributionLoss' from 'neuralforecast.losses.pytorch' (E:\MT\code\env\lib\site-packages\neuralforecast\losses\pytorch.py)`

`3.10.9`

c- 2
- 3

- c
Chris Gervais

02/07/2023, 5:20 PMi noticed in https://nixtla.github.io/neuralforecast/examples/exogenous_variables.html that the

column doesn't get hot encoded when passing to`weekday`

- was that intentional? we're trying to integrate tsfresh features but seem to be running into issues when we hot encode - still investigating but thought it might be related to exogenous scaling`futur_exog_list = [..., 'weekday']`

c- 2
- 7

- m
Marcello Infantino

02/08/2023, 8:48 PMHi all, is there a specific model of Neural Forecast you'd recommend to forecast multiple target variables?k- 2
- 2

- c
Chris Gervais

02/08/2023, 8:52 PMis it possible to use NHITS to forecast future periods if we don't have "live"

values?`y`

k- 2
- 5