See the source code on your personal homepage:
https://download.csdn.net/download/qq_45874683/87667984
DEAP-based EEG emotion recognition (models are SVM, KNN, decision tree, random forest) complete code
1. Read the data_preprocessed_python data in the deap data set
2. Convert data to array format
3. Data preprocessing and feature extraction
Extract PSD features
4. Construct Label data