Course name: Financial Time Series Analysis for Trading, ARIMA-No module named 'data_modules' error

In Financial Time Series Analysis for Trading, ARIMA model, i have entered all the code till #Forecasting the time series, but I am finally stuck in # Predict the price using predict_price_MA function: 

  1. import sys
  2. sys.path.append("C:/Users/rakes/FTSA-Resources/data_modules/")
  3. # Predict the price using `predict_price_MA` function:
  4. data['predicted_price'] = data['close'].rolling(
  5.     rolling_window).apply(predict_price_ARIMA)
  6. # Shift the predicted price by 1 period:
  7. data['predicted_price'] = data['predicted_price'].shift(1)
Error I am getting: 
  • ModuleNotFoundError                       Traceback (most recent call last)
    Cell In[76], line 1
    ----> 1 from data_modules.tsa_functions_quantra import model_performance
          2 model_performance(data['Close'].iloc[rolling_window:],
          3                   data['predicted_price'].iloc[rolling_window:])
    

    ModuleNotFoundError: No module named 'data_modules'

    I have uploaded all the files in FTSA resources on to notebook, I have also properly mentioned the path of 'data_modules'
    I have deleted all duplicate folders of 'data_modules', yet i am still getting this error
    Please help me resolve this issue, i am unable to proceed further due to this error


http://1drv.ms/i/c/92e0f12a469d4bfd/EQIpeQBMa7lJkkUpr1e9QOAB1aGaGupNpe9pF6zmv2zQFQ?e=5oQIql
 

Hi Rakesh,



I downloaded the zip file and the notebook seems to be running fine on my system. It is also running fine on the portal.



The error is due to the location of the file. Please ensure that the path/location of the data_modules folder is correct. If the issue persists, you can also try downloading the zip file again and then running the notebook.



Let me know if you need any further assistance.



Thanks

Rushda