dirconn.MethodInfo#

class dirconn.MethodInfo(name: str, backend: str, directed: bool, antisymmetric: bool = False, signed: bool = False, min_nodes: int = 2, max_nodes: int | None = None, value_range: tuple[float, float] | None = None, scale_dependent: bool = False, complex_valued: bool = False, frequency_resolved: bool = False, time_resolved: bool = False, assumptions: tuple[str, ...] = (), supports_mask: bool = False, report_kind: str = 'matrix', citations: tuple[str, ...] = ())#

Structured description of a method, enforced at run time.

Parameters:
  • name (str) – Method name recorded in the provenance, for example "granger".

  • backend (str) – The implementation actually used, for example "own numpy OLS MVAR". Stating it avoids a method name hiding what is computed.

  • directed (bool) – Whether values[i, j] != values[j, i] in general.

  • antisymmetric (bool) – Whether values[j, i] = -values[i, j] by construction (a net flow or a phase), so one number describes a pair and a pair coupled both ways cannot be shown as two edges.

  • signed (bool) – Whether the sign of a value is the sign of the coupling (a correlation), not its strength: a strong negative value is a strong link.

  • min_nodes (int) – Allowed number of channels; max_nodes=None means no upper limit. A directed measure needs at least two channels.

  • max_nodes (int) – Allowed number of channels; max_nodes=None means no upper limit. A directed measure needs at least two channels.

  • value_range ((float, float), optional) – Range of the values, inf allowed, for documentation and plotting.

  • scale_dependent (bool) – Whether the values depend on the channel amplitudes. Such methods warn when the channel scales differ strongly.

  • complex_valued (bool) – Whether the result is complex.

  • frequency_resolved (bool) – Whether the result has a real frequency or time axis.

  • time_resolved (bool) – Whether the result has a real frequency or time axis.

  • assumptions (tuple of str) – Standard assumptions the method relies on (names from STANDARD_ASSUMPTIONS).

  • supports_mask (bool) – Whether the method uses the per-sample valid and predict masks of a TimeSeries. Estimator.fit() refuses masked data for a method that does not, instead of silently ignoring the masks.

  • report_kind (str) – How a report draws the result, one of REPORT_KINDS: "matrix" (one value per pair), "spectrum" (a frequency axis), "time_frequency" (a time-frequency map) or "control" (a control measure that is not a connectivity estimate in itself).

  • citations (tuple of str) – Bibliography keys of the references for the method.

__init__(name: str, backend: str, directed: bool, antisymmetric: bool = False, signed: bool = False, min_nodes: int = 2, max_nodes: int | None = None, value_range: tuple[float, float] | None = None, scale_dependent: bool = False, complex_valued: bool = False, frequency_resolved: bool = False, time_resolved: bool = False, assumptions: tuple[str, ...] = (), supports_mask: bool = False, report_kind: str = 'matrix', citations: tuple[str, ...] = ()) → None#

Methods

__init__(name, backend, directed[, ...])

Attributes

antisymmetric

assumptions

citations

complex_valued

frequency_resolved

max_nodes

min_nodes

report_kind

scale_dependent

signed

supports_mask

time_resolved

value_range

name

backend

directed