Skip to content

Releases: gcattan/covmatest

v0.4.1

01 Mar 20:06
45d87ca
Compare
Choose a tag to compare

What's Changed

  • Add returns_A and returns_B parameters by @gcattan in #50
  • Bump peter-evans/create-pull-request from 5 to 6 by @dependabot in #56
  • Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.12 by @dependabot in #57

Full Changelog: v0.4...v0.4.1

v0.4

04 Jan 14:26
36a8063
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3...v0.4

v0.3

04 Apr 12:17
f949f12
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.1...v0.3

v0.2.1

17 Mar 09:58
ee7123f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2...v0.2.1

v0.2

16 Oct 16:07
e3b6991
Compare
Choose a tag to compare
v0.2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.1...v0.2

v0.1

17 Oct 18:57
Compare
Choose a tag to compare
v0.1 Pre-release
Pre-release

Release notes

This software implements a simple method to get semi-definite positive (SPD) covariance matrices for testing. A possible use case is the use of such software for testing electroencephalography (EEG) or magnetoencephalography (MEG) classification pipeline based on covariance matrices and Riemannian geometry.  

Samples are real EEG recordings of participants during an opened/closed eye experiment [1]. The implementation takes as parameters the expected number of matrices and channels and returns a random set of samples from the experiment. The number of channels has to be between 1 and 16. Covariance matrices are estimated using pyRiemann [2].

Usage

The software can be installed using pip:

pip install covmattest

And the following code generates 3 matrices of size 2x2:

covmat = get_covmat(3, 2)

By default, matrices are issued from the same subject, picked randomly at the initialization of the script. To enforce the choice of a new random subject, you can use the following code:

from covmatest import CovmatGen
gen = CovmatGen()
covmat = gen.get_covmat(3, 2)

Note that each instance of CovmatGen picks a subject randomly and then keeps it during the whole time of its lifecycle.

References

[1]  G. Cattan, P. L. Coelho Rodrigues, and M. Congedo, ‘EEG Alpha Waves Dataset’, GIPSA-LAB, Research Report, décembre 2018. [Online]. Available: https://hal.archives-ouvertes.fr/hal-02086581

[2] A. Barachant, pyRiemann. pyRiemann, 2015. [Online]. Available: https://github.com/pyRiemann/pyRiemann