exact_order#

causalbase.lingam.exact_order(first, deflate, order=None)[source]#

Run the order search of rcd_exact() over data held anywhere.

The search sees the data only through deflate, so the same loop serves a table in memory and data spread over several machines.

Parameters:
firstCumulants

The cumulants of the original data.

deflatecallable

deflate(source, betas) replaces each remaining column j of the data by x_j - betas[j] * x_source, drops column source (both positions among the remaining columns), and returns the cumulants of the result.

order{3, 4} or None, optional

Which tau discriminator to use; as in rcd().

Returns:
list of int

The causal order, in the original column indices.