I am trying to add conditionals to a multivariate mutual information inference and keep getting an error I don't understand. I am trying to manually add the lags for the target variable that were produced by the AIS estimator.
Here's a minimal model that should reproduce the issue:
data = Data(np.random.randint(0,2,(5,10_000)), dim_order="ps", normalise=False)
settings = {'cmi_estimator' : 'JidtDiscreteCMI',
'max_lag_sources' : 1,
'max_lag_targets' : 1,
'min_lag_sources' : 1,
'min_lag_targets' : 1,
'permute_in_time' : True,
'perm_type' : 'circular',
'perm_range' : 10,
'n_perm_max_stat' : 250,
'n_perm_min_stat' : 250,
'n_perm_omnibus' : 250,
'n_perm_max_seq' : 250,
'local_values' : False,
'add_conditionals' : [(0, 1), (0,2)], # Manually adding in the history of the target from the AIS estimator
}
inference = MultivariateMI()
results = inference.analyse_single_target(settings, data, target=0, sources=[1,2,3,4])