Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix :class:pyriemann_qiskit.utils.filtering.ChannelSelection #354

Merged

Conversation

allwaysFindFood
Copy link
Contributor

@allwaysFindFood allwaysFindFood commented Feb 12, 2025

Fix :class:pyriemann_qiskit.utils.filtering.ChannelSelection that caused incorrect channel selection

If the number of selected channels is not equal to self.n_channels, it will cause an error. Therefore, the approach of selecting the channels is finding the largest self.n_chan elements in max values of each row .

Details: NeuroTechX/moabb#685
@gcattan Done !

@gcattan
Copy link
Collaborator

gcattan commented Feb 12, 2025

Thank you for the PR @allwaysFindFood !

@jiggychauhi FYI: this may be one of the reasons why the quantum autoencoder was not working with PHMD_ML.

@gcattan gcattan merged commit a5b7f6d into pyRiemann:main Feb 12, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants