Hi everyone, when I try to pass exogenous variable...
# mlforecast
v
Hi everyone, when I try to pass exogenous variables to AutoARIMA, it gives me the following error: I tried dropping all the covariates but one for all the existing covariates, but the error persists. Any idea on how to solve this?
j
Are you including a trend column? That model builds one internally so you'd be introducing colinearity
j
or you have all zeros in one column? https://github.com/robjhyndman/forecast/issues/699
v
I don't have an all-zeros column, not sure about the trend one. I currently have these ones: ['ticker', 'datetime', 'open_lag12', 'high_lag12', 'volume_lag12', 'close_diff1_lag12', 'close_diff12_lag12']. But as I said, even if I keep only one of them, it still gives me the error
Is there a way to check how the data is being represented internally? Then I could check for colinear/all zeros column pairs, there are 100
unique_ids
j
Seems like you're using a vscode notebook. When you hit that error you can type
%debug
in a separate cell and that will take you to the place where the error happens, you can then inspect the matrix
v
Ok, I restarted the kernel and ran everything again, had two highly correlated columns (97%), dropped one of them and it is working now.
👍 1
Thanks for the help @José Morales and @jan rathfelder!
👍 1