pyriemann.transfer.decode_domains¶
- pyriemann.transfer.decode_domains(X_enc, y_enc)¶
Decode the domains of the data in the labels.
We handle the possibility of having different domains for the datasets by encoding the domain information into the labels of the data. This method converts the data into its original form, with a separate data structure for labels and for domains.
- Parameters:
- X_encndarray, shape (n_matrices, n_channels, n_channels) or shape (n_vectors, n_ts)
Set of SPD matrices or tangent vectors.
- y_encndarray, shape (n_matrices,) or shape (n_vectors,)
Extended labels for each matrix or vector.
- Returns:
- Xndarray, shape (n_matrices, n_channels, n_channels) or shape (n_vectors, n_ts)
The same data given as input.
- yndarray, shape (n_matrices,) or shape (n_vectors,)
Labels for each matrix or vector.
- domainndarray, shape (n_matrices,) or shape (n_vectors,)
Domains for each matrix or vector.
See also
Notes
Added in version 0.4.