Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError when running VarLiNGAM #56

Open
shisi-cc opened this issue Dec 10, 2019 · 1 comment
Open

ValueError when running VarLiNGAM #56

shisi-cc opened this issue Dec 10, 2019 · 1 comment
Assignees

Comments

@shisi-cc
Copy link

When I run VarLiNGAM on Finance dataset (http://www.skleinberg.org/data/FinanceCPT.tar.gz), I meet a ValueError.
df_data = pd.read_csv(datafile) model = VarLiNGAM(lag=3) result = model.create_graph_from_data(df_data)
The error is as follows

File "", line 1, in
runfile('F:/work_python_d_2/TimeSeriesCausalDiscovery/VARLiNGAM/VARLiNGAM_Finance.py', wdir='F:/work_python_d_2/TimeSeriesCausalDiscovery/VARLiNGAM')

File "D:_work\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "D:_work\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "F:/work_python_d_2/TimeSeriesCausalDiscovery/VARLiNGAM/VARLiNGAM_Finance.py", line 31, in
G = model.create_graph_from_data(df_data)

File "D:_work\Anaconda3\lib\site-packages\cdt\timeseries\graph\VARLiNGAM.py", line 75, in create_graph_from_data
inst, lagged = self._run_varLiNGAM(data.values, verbose=self.verbose)

File "D:_work\Anaconda3\lib\site-packages\cdt\timeseries\graph\VARLiNGAM.py", line 109, in run_varLiNGAM
Bhat
= np.dot((Ident - Bo_), Mt_)

ValueError: shapes (25,25) and (75,25) not aligned: 25 (dim 1) != 75 (dim 0)

@diviyank
Copy link
Collaborator

Hi,
The data might not be in the good format; Let's ask @koutrgor for more details;

@diviyank diviyank added Investigation Investigation of a possible bug minor bug and removed Investigation Investigation of a possible bug labels Dec 20, 2019
@diviyank diviyank self-assigned this Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants