# \#csp

**URL:** https://mne.discourse.group/tag/csp/92.md

[Latest](https://mne.discourse.group/latest.md) · [Categories](https://mne.discourse.group/categories.md) · [Tags](https://mne.discourse.group/tags.md)

---

## [The API reference of CSP needs update](https://mne.discourse.group/t/the-api-reference-of-csp-needs-update/9018)

<div class="topic-metadata">

**Author:** [@Karia70](https://mne.discourse.group/u/Karia70)\
**Replies:** 3\
**Last updated:** [August 13, 2024, 10:31am UTC](https://mne.discourse.group/t/the-api-reference-of-csp-needs-update/9018 "2024-08-13T10:31:34Z")

</div>

This week, I upgraded my MNE env from V 1.5.1 to 1.7.1 and machine learning model report error. After check, I found the parameter ‘rank’ in decoding.CSP() no longer supports string value. e.g. csp = CSP(n\_components=…

---

## [CSP one vs rest for multiclass classification](https://mne.discourse.group/t/csp-one-vs-rest-for-multiclass-classification/7559)

<div class="topic-metadata">

**Author:** [@hareshnitt](https://mne.discourse.group/u/hareshnitt)\
**Replies:** 0\
**Last updated:** [September 24, 2023, 3:20pm UTC](https://mne.discourse.group/t/csp-one-vs-rest-for-multiclass-classification/7559 "2023-09-24T15:20:00Z")

</div>

Dear all How to perform classification of epoched eeg signal using csp one vs rest method to classify to 10 class MNE version: e.g. 0.24.0 operating system: Windows 11 Thank you :pray:

---

## [Predicting with CSP for motor imagery](https://mne.discourse.group/t/predicting-with-csp-for-motor-imagery/6156)

<div class="topic-metadata">

**Author:** [@cargonvis](https://mne.discourse.group/u/cargonvis)\
**Replies:** 1\
**Last updated:** [January 9, 2023, 3:23pm UTC](https://mne.discourse.group/t/predicting-with-csp-for-motor-imagery/6156 "2023-01-09T15:23:35Z")

</div>

MNE version: e.g. 1.3.0 operating system: Ubuntu 20.04 Hello everyone! I am trying to train a model that detects in (relatively) real time motor imagery. I used the following example code for training with my own EEG…

---

## [Plotting spatial patterns with CSP for each class](https://mne.discourse.group/t/plotting-spatial-patterns-with-csp-for-each-class/6093)

<div class="topic-metadata">

**Author:** [@ali44](https://mne.discourse.group/u/ali44)\
**Replies:** 5\
**Last updated:** [December 30, 2022, 5:19pm UTC](https://mne.discourse.group/t/plotting-spatial-patterns-with-csp-for-each-class/6093 "2022-12-30T17:19:16Z")

</div>

Hello, I would like to plot spatial patterns of my data with using csp for each class. I know MNE supports the csp.plot\_patterns() But it does not give for class based. How can I obtain the class based patterns like…

---

## [ECoG CSP pattern plot](https://mne.discourse.group/t/ecog-csp-pattern-plot/5147)

<div class="topic-metadata">

**Author:** [@mangoez](https://mne.discourse.group/u/mangoez)\
**Replies:** 4\
**Last updated:** [June 24, 2022, 2:16pm UTC](https://mne.discourse.group/t/ecog-csp-pattern-plot/5147 "2022-06-24T14:16:14Z")

</div>

In our pilot experiment we did not include any information about the ECoG location, so once we have generated the CSP patterns we can’t plot it using the plot\_patterns function. The ECoG is a 7x4 array, is there a way t…

---

## [Should the shape of the brain wave be that way?](https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116)

<div class="topic-metadata">

**Author:** [@saccccccc](https://mne.discourse.group/u/saccccccc)\
**Replies:** 1\
**Last updated:** [June 18, 2022, 3:23pm UTC](https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116 "2022-06-18T15:23:33Z")

</div>

The brain waves acquired by openBCI are (time series, number of channels). How should I change the shape when using CSP? For example, time10second, 125hz and 16ch. NumPy shape is (1250,16).

---

## [How can I apply MNE's CSP to brain waves acquired by OpenBCI?](https://mne.discourse.group/t/how-can-i-apply-mnes-csp-to-brain-waves-acquired-by-openbci/5100)

<div class="topic-metadata">

**Author:** [@saccccccc](https://mne.discourse.group/u/saccccccc)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 6:27am UTC](https://mne.discourse.group/t/how-can-i-apply-mnes-csp-to-brain-waves-acquired-by-openbci/5100 "2022-06-17T06:27:52Z")

</div>

I have acquired brain waves with openBCI (125Hz, 16ch), but I would like to apply MNE’s CSP to this. How should I specifically apply it?

---

## [Ask for related solution (EEG related )](https://mne.discourse.group/t/ask-for-related-solution-eeg-related/4953)

<div class="topic-metadata">

**Author:** [@CliffordTHU](https://mne.discourse.group/u/CliffordTHU)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 11:16am UTC](https://mne.discourse.group/t/ask-for-related-solution-eeg-related/4953 "2022-05-27T11:16:37Z")

</div>

Hello, nowadays I saw a task and realized it might already realized in mne, therefor want to ask is there any recommand doc to solve this?

---

## [engine dream interpretation](https://mne.discourse.group/t/engine-dream-interpretation/4922)

<div class="topic-metadata">

**Author:** [@tastan](https://mne.discourse.group/u/tastan)\
**Replies:** 1\
**Last updated:** [May 23, 2022, 12:15pm UTC](https://mne.discourse.group/t/engine-dream-interpretation/4922 "2022-05-23T12:15:21Z")

</div>

MNE version: e.g. 0.24.0 operating system: / Windows 10 / I used the motor imagery in the data set in the mne csp lecture notes. my goal is to draw csp when i think right or left hand. How can I tell from the topograph…

---

## [Potential improvements of the documentation about CSP](https://mne.discourse.group/t/potential-improvements-of-the-documentation-about-csp/4719)

<div class="topic-metadata">

**Author:** [@willenjoy](https://mne.discourse.group/u/willenjoy)\
**Replies:** 1\
**Last updated:** [April 16, 2022, 4:28pm UTC](https://mne.discourse.group/t/potential-improvements-of-the-documentation-about-csp/4719 "2022-04-16T16:28:30Z")

</div>

Dear MNE team, First of all, thank you for creating and maintaining such a nice collection of tools for working with neurophysiological data! I recently worked with this tutorial on applying CSP for decoding imaginary …

---

## [can not do csp.fit\_transform() without label](https://mne.discourse.group/t/can-not-do-csp-fit-transform-without-label/4072)

<div class="topic-metadata">

**Author:** [@Long](https://mne.discourse.group/u/Long)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 10:39am UTC](https://mne.discourse.group/t/can-not-do-csp-fit-transform-without-label/4072 "2021-12-03T10:39:19Z")

</div>

I am usng MNE 0.23.4; I am following this tutorial about CSP: mne.decoding.CSP — MNE 0.24.1 documentation When I do: a=csp.fit\_transform(epochs\_data\_train), I got complain like below: Traceback (most recent call last)…
