# Should the shape of the brain wave be that way?

**URL:** <https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116>\
**Category:** Support & Discussions\
**Tags:** eeg, machine-learning, csp\
**Created:** [June 18, 2022, 1:50pm UTC](https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116 "2022-06-18T13:50:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saccccccc](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@saccccccc](https://mne.discourse.group/u/saccccccc)\
**Post date:** [June 18, 2022, 1:50pm UTC](https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116/1 "2022-06-18T13:50:34Z")

</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).

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [June 18, 2022, 3:23pm UTC](https://mne.discourse.group/t/should-the-shape-of-the-brain-wave-be-that-way/5116/2 "2022-06-18T15:23:33Z")

</div>

You need to epoch the data such that you get it into shape `(n_epochs, n_channels, n_times)`; then you can pass it to CSP.

Best wishes,  
Richard
