pyriemann.datasets.make_masks

pyriemann.datasets.make_masks(n_masks, n_dim0, n_dim1_min, rs=None)

Generate a set of masks, defined as semi-orthogonal matrices.

Parameters
n_masksint

Number of masks to generate.

n_dim0int

First dimension of masks.

n_dim1_minint

Minimal value for second dimension of masks.

rsRandomState instance, default=None

Random state for reproducible output across multiple function calls.

Returns
maskslist of n_masks ndarray of shape (n_dim0, n_dim1_i), with different n_dim1_i, such that n_dim1_min <= n_dim1_i <= n_dim0

Masks.