Hello team. I have a problem when I import this in...
# neural-forecast
l
Hello team. I have a problem when I import this in my code:
from neuralforecast.models.mqnhits.mqnhits import MQNHITS
(pre-trained N-Hits model) I have this error: ModuleNotFoundError Traceback (most recent call last) in <cell line: 1>() ----> 1 from neuralforecast.models.mqnhits.mqnhits import MQNHITS ModuleNotFoundError: No module named 'neuralforecast.models.mqnhits'
Copy code
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
how can I fix this error?
m
Hi! I saw this model added in version 0.1.0, but in the latest version, it does not exist anymore, which is why you can't import it. What you could do is train your own N-HiTS model and perform transfer learning, as detailed here. I hope this helps!
l
Thanks for your explanation. I have seen this page for transfer learning of the N-Hits model. I think my dataset should be like the M4 dataset but my dataset isn't like that. If I understand it correctly, let me know and if I make a mistake in understanding this transfer learning please explain to me how can I do this?
m
The general idea is to train a model on data, then save the model, and load it to make predictions on new unseen data. All steps and code are detailed in the link I shared with you!
l
Thanks a lot. If I face a problem, I'll ask it again.