Riemannian Alignment (RA) uses the Riemannian mean of the covariance matrix of all trials as the reference matrix,
so that the center point of the whitened covariance matrix is located in the identity matrix.
By performing RA processing on each subject’s data, the center point of the covariance matrix for all individuals
can be aligned. Euclidean Alignment (EA) replaces the Riemann mean covariance matrix with the Euclidean mean
covariance matrix.
Parameters:
n_jobs (int) – the default is None
align_method (str) – choose the alignment method:’riemann’ or ‘euclid’
Fisher Geodesic Discriminate Analysis(FGDA) is the application of Fisher Linear Discriminate Analysis
in the Riemannian tangent space.FGDA first calculates the projection vectors of the sample covariance
matrix of EEG signals in the Riemannian tangent space.Then, leveraging the properties of Riemannian
tangent space as a Euclidean space, it performs discriminant feature extraction on the projected
vectors in the tangent space based on the Fisher Linear Discriminant Analysis criterion.
Parameters:
n_jobs (int) – the default of n_jobs is None,meaning it will utilize all available CPUs.
The Fisher Geodesic Minimum Distance to Riemannian Mean(FGMDRM) algorithm is a fusion of
MDRM and FGDA.The algorithm first employs FGDA in the tangent space to filter the data,extracting
key discriminative features,removing irrelevant noise components. Subsequently, the extracted
discriminative features are remapped back to the manifold space. The covariance matrix of the
filtered sample space is then calculated based on MDRM to determine the Riemannian centroids for
each class. The classification of test data is performed based on the minimum distance principle.
Parameters:
n_jobs (int) – the default of n_jobs is None,meaning it will utilize all available CPUs.
Note that this method is only relevant if
enable_metadata_routing=True (see sklearn.set_config()).
Please see User Guide on how the routing
mechanism works.
The options for each parameter are:
True: metadata is requested, and passed to fit if provided. The request is ignored if metadata is not provided.
False: metadata is not requested and the meta-estimator will not pass it to fit.
None: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
str: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (sklearn.utils.metadata_routing.UNCHANGED) retains the
existing request. This allows you to change the request for some
parameters and not others.
New in version 1.3.
Note
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
Pipeline. Otherwise it has no effect.
Parameters:
sample_weight (str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED) – Metadata routing for sample_weight parameter in fit.
Note that this method is only relevant if
enable_metadata_routing=True (see sklearn.set_config()).
Please see User Guide on how the routing
mechanism works.
The options for each parameter are:
True: metadata is requested, and passed to score if provided. The request is ignored if metadata is not provided.
False: metadata is not requested and the meta-estimator will not pass it to score.
None: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
str: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (sklearn.utils.metadata_routing.UNCHANGED) retains the
existing request. This allows you to change the request for some
parameters and not others.
New in version 1.3.
Note
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
Pipeline. Otherwise it has no effect.
Parameters:
sample_weight (str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED) – Metadata routing for sample_weight parameter in score.
Minimum Distance to Riemannian Mean(MDRM) is a decoding algorithm based on Riemann distance metric.
MDRM calculates the covariance matrix of EEG signals, estimates the Riemannian centroids for each class,
then determines the class of a test sample by computing the minimum distance between the test data’s covariance
matrix and the mean point.
Parameters:
n_jobs (int) – n_jobs the default is None,meaning it will utilize all available CPUs.
Note that this method is only relevant if
enable_metadata_routing=True (see sklearn.set_config()).
Please see User Guide on how the routing
mechanism works.
The options for each parameter are:
True: metadata is requested, and passed to fit if provided. The request is ignored if metadata is not provided.
False: metadata is not requested and the meta-estimator will not pass it to fit.
None: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
str: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (sklearn.utils.metadata_routing.UNCHANGED) retains the
existing request. This allows you to change the request for some
parameters and not others.
New in version 1.3.
Note
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
Pipeline. Otherwise it has no effect.
Parameters:
sample_weight (str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED) – Metadata routing for sample_weight parameter in fit.
Note that this method is only relevant if
enable_metadata_routing=True (see sklearn.set_config()).
Please see User Guide on how the routing
mechanism works.
The options for each parameter are:
True: metadata is requested, and passed to score if provided. The request is ignored if metadata is not provided.
False: metadata is not requested and the meta-estimator will not pass it to score.
None: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
str: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (sklearn.utils.metadata_routing.UNCHANGED) retains the
existing request. This allows you to change the request for some
parameters and not others.
New in version 1.3.
Note
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
Pipeline. Otherwise it has no effect.
Parameters:
sample_weight (str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED) – Metadata routing for sample_weight parameter in score.
In order to overcome the problem that the trial data gradually appear in chronological order under the online experiment,
there is no initial sample size estimation center, and the calculation process of the Riemann center is complex,
and it takes a lot of time to recalculate the Riemannian center in the feedback stage, the Recursive Riemannian Alignment
(rRA) and Recursive Euclidean Alignment (rEA) suitable for the online stage were proposed.
Parameters:
n_jobs (int) – the default is None
align_method (str) – choose the alignment method:’riemann’ or ‘euclid’
The Tangent Space Classifier (TSClassifier) is a general term for classifiers constructed in the Riemannian
tangent space,which is treated as a Euclidean space. Methods such as LDA (Linear Discriminant Analysis),
SVM (Support Vector Machine),Logistic Regression, and others are employed to build classifiers in this
Riemannian tangent space.
Parameters:
n_jobs (int) – the default of n_jobs is None,meaning it will utilize all available CPUs.
Note that this method is only relevant if
enable_metadata_routing=True (see sklearn.set_config()).
Please see User Guide on how the routing
mechanism works.
The options for each parameter are:
True: metadata is requested, and passed to score if provided. The request is ignored if metadata is not provided.
False: metadata is not requested and the meta-estimator will not pass it to score.
None: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
str: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (sklearn.utils.metadata_routing.UNCHANGED) retains the
existing request. This allows you to change the request for some
parameters and not others.
New in version 1.3.
Note
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
Pipeline. Otherwise it has no effect.
Parameters:
sample_weight (str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED) – Metadata routing for sample_weight parameter in score.
Logarithm map from the positive-definite space to the tangent space.
Logarithm map projects \(\mathbf{P}_i \in \mathcal{M}\) to the tangent space point
\(\mathbf{S}_i \in \mathcal{T}_{\mathbf{P}} \mathcal{M}\) at \(\mathbf{P} \in \mathcal{M}\).
Parameters:
Pi (ndarray) – SPD matrix.
P (ndarray) – Reference point.
n_jobs (int, optional) – the number of jobs to use.