dirconn.DTF#
- class dirconn.DTF(order: int | str = 'bic', max_order: int = 10, n_freqs: int = 128, fmax: float | None = None, freqs: Any = None, ridge: float = 0.0, demean: bool = True, n_folds: int = 5, check_order_stability: bool = True, check_whiteness: bool = True, standardize: bool = True)#
Directed transfer function (Kaminski and Blinowska), a predictive spectral measure.
values[i, j, f]is the share of the signal reaching channeljat frequencyfthat comes from channeli: the squared transfer function normalised over the sources of each target, so the values over all sources sum to 1. It mixes direct and indirect paths. The diagonal (a channel’s share of itself) is defined, unlike inGC.- Parameters:
order (int or {"aic", "bic", "hqc", "cv"}) – Fixed VAR order, or the criterion that selects it once on the model of all channels.
max_order (int) – Largest candidate order when
orderis a criterion.n_freqs – Frequency axis:
n_freqspoints from 0 tofmax(default the Nyquist frequency), or an explicitfreqsin Hz.fmax – Frequency axis:
n_freqspoints from 0 tofmax(default the Nyquist frequency), or an explicitfreqsin Hz.freqs – Frequency axis:
n_freqspoints from 0 tofmax(default the Nyquist frequency), or an explicitfreqsin Hz.ridge – As for
dirconn.fit_var()anddirconn.select_order().demean – As for
dirconn.fit_var()anddirconn.select_order().n_folds – As for
dirconn.fit_var()anddirconn.select_order().standardize (bool) – Divide every channel by its standard deviation before fitting, because the result depends on the relative scale of the channels. The factors are recorded in the provenance.
check_order_stability (bool) – Run the order-stability check and the residual whiteness check, as for
GC. The resampling tests switch both off for the resampled fits.check_whiteness (bool) – Run the order-stability check and the residual whiteness check, as for
GC. The resampling tests switch both off for the resampled fits.
- __init__(order: int | str = 'bic', max_order: int = 10, n_freqs: int = 128, fmax: float | None = None, freqs: Any = None, ridge: float = 0.0, demean: bool = True, n_folds: int = 5, check_order_stability: bool = True, check_whiteness: bool = True, standardize: bool = True) None#
Methods
__init__([order, max_order, n_freqs, fmax, ...])fit(data)Estimate directed connectivity.
get_params()Return the constructor parameters as a dictionary.
Attributes
check_order_stabilitycheck_whitenessdemeanfmaxfreqsinfomax_ordern_foldsn_freqsorderridgestandardize