Displaying filters from CSP trained externally to MNE

  • MNE-Python version: latest version
  • operating system: Windows 10

Hi,

I have trained CSP filters with calibration data using OpenVibe software and ended up with an XML file that contains the weights associated with each electrode.
I would like to display the topographical maps of the CSP weights as shown in the MNE example:


(OpenVibe doesn’t seem to support CSP filter display, so I was advised to try to do this using MNE instead)
I think the CSP.plot_filters and plot_patterns function could do the trick.
However, I am unsure whether it is possible to instantiate a CSP object by reading a file with externally obtained weights (instead of retraining from scratch with MNE) and how I would do this.

Would anyone have input on this?

Thank you very much :slightly_smiling_face:

create a fake evoked object with EvokedArray and use the plot_topomap method or
otherwise you can use mne.viz.plot_topomap that takes as input the values at electrodes
and their locations

HTH
Alex

Thank you for the quick response, it worked ! :slight_smile: