dirconn.OrderSelection#

class dirconn.OrderSelection(criterion: str, orders: ndarray, aic: ndarray, bic: ndarray, hqc: ndarray, order: int, max_order: int, n_obs: int, cv: ndarray | None = None, cv_scheme: str | None = None, n_folds: int | None = None)#

Result of select_order().

criterion#

The criterion that decided order.

Type:

str

orders#

The candidate orders 1 .. max_order.

Type:

ndarray

aic, bic, hqc

The criterion curves, one value per candidate order.

Type:

ndarray

order#

The order that minimises criterion.

Type:

int

max_order#

Largest candidate order.

Type:

int

n_obs#

Number of regression rows, the same for every candidate order.

Type:

int

cv#

Cross-validated normalised prediction error per candidate order; only computed when criterion="cv".

Type:

ndarray or None

cv_scheme#

How the data were held out: whole trials or contiguous time blocks.

Type:

{“trials”, “blocks”} or None

n_folds#

Number of folds actually used.

Type:

int or None

__init__(criterion: str, orders: ndarray, aic: ndarray, bic: ndarray, hqc: ndarray, order: int, max_order: int, n_obs: int, cv: ndarray | None = None, cv_scheme: str | None = None, n_folds: int | None = None) → None#

Methods

__init__(criterion, orders, aic, bic, hqc, ...)

to_dict()

Return the selection as JSON-compatible lists, for example for a provenance record.

Attributes