# Using PCA and CSP together.

**URL:** <https://mne.discourse.group/t/using-pca-and-csp-together/5346>\
**Category:** Support & Discussions\
**Tags:** eeg\
**Created:** [July 28, 2022, 11:06pm UTC](https://mne.discourse.group/t/using-pca-and-csp-together/5346 "2022-07-28T23:06:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raz](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@Raz](https://mne.discourse.group/u/Raz)\
**Post date:** [July 28, 2022, 11:06pm UTC](https://mne.discourse.group/t/using-pca-and-csp-together/5346/1 "2022-07-28T23:06:01Z")

</div>

Hello,  
I have 2 questions:  
1- About using spatial filter methods for EEG signals dataset. For the classification with machine learning techniques, can I use PCA and CSP as a spatial filter methods at the same time to show the better result for the classification? Or they should not be used together?

2- I found that EEGNET is a good deep learning package for EEG datasets based on some papers, How can I apply EEGNET for 1D dataset? Because I have a csv file with a shape (100000, 62). It gives me dimensional error because the source code is written for 2D dataset.

Thank you for your help.

Regards,
