pwollstadt/IDTxl

TypeError when using JidtDiscreteCMI

Rhydderch opened this issue · 2 comments

Hello,

When I try to use the estimator for discrete data, I get the following error:

TypeError: No matching overloads found for constructor infodynamics.measures.discrete.ConditionalMutualInformationCalculatorDiscrete(), options are:
	public infodynamics.measures.discrete.ConditionalMutualInformationCalculatorDiscrete(int,int,int)

Here's my code:

#data structure: 6 processes, 56 samples/time points, 39 replications (3D array: 39x56x6)
dat = Data(mydata, dim_order='rsp')
network_analysis = MultivariateTE()
settings = {
  'cmi_estimator': 'JidtDiscreteCMI',
            'max_lag_sources': 3,
            'min_lag_sources': 0
          }

results = network_analysis.analyse_network(settings=settings, data=dat)

What am I doing wrong here?

PS: I don't encounter the same errors with the "OpenCLKraskovCMI" for continuous data (though, my variables range from 0-100, so I'm not sure the KSG estimator is the right choice)

Hi Michael,

Thank you very much for your answer and for clarifying. The kraskov estimator works well.

Yorgo