VAR model in mne_connectivity

Hi

There is an issue with the predict method in vector_auto_regression. When you use a model with an order higher than 1, the coefficients can not reshape to square matrices. However, in the predict method, it uses the ‘dense’ to get the data of connectivity output, which is not possible.

Hello @Farzad and welcome to the forum!

I’m tagging @adam2392, who created mne-connectivity.

Hi @Farzad thanks for raising the issue, can you put up a GH issue w/ some code demonstrating the issue + error message? Thanks!