Skip to content

Instantly share code, notes, and snippets.

View william2ai's full-sized avatar
Run

Chengkai Wang william2ai

Run
View GitHub Profile
@william2ai
william2ai / normalize.py
Last active September 13, 2024 16:45
EEG Pre_Processing
import numpy as np
# 加载数据
data = np.load('eeg.npy')
# 获取数据的形状
num_channels, num_timepoints, num_samples = data.shape
# 对每个 channel 进行正则化
for i in range(num_samples):