Closed extrospective closed 3 years ago
This is failure due to the VAR selecting a lag order of zero which causes an error in statsmodels.tsa.api.VAR.forecast. It has been corrected in https://github.com/wbnicholson/BigVAR/commit/8fd3944ea5ac29b6db10a875ec4bbcb7114fa180.
The rolling_validate(mod) line fails for various sets of data. I found this with my own data, but ultimately also with the README sample code.
The sample code does not presently seed the random generator and therefore MultVARSim is generating different arrays and the output varies. Setting the seed value explicitly shows that rolling_validate(mod) will fail on many seed values.
I wrapped the code in a loop where I set the random seed each iteration (I had started lower but then adjusted the seed range to have one success at seed=5 before a failure at seed=6):
The failure when seed=6 is:
If I restart the kernel and start with seed=6 it fails with this error on the first iteration, so it does not seem to be due to state.