0

我有名为“Deap”的生理 EEG 情绪数据集。我想通过 MNE 分析和可视化数据,但它有自己的格式。

如何加载我的个人数据进行预处理,数据格式为 (.dat)?

4

1 回答 1

1
import pickle

with open('s01.dat', 'rb') as f:
    y = pickle.load(f, encoding='latin1')

This one works for me. Of course, the ".dat" file is in the same directory as this code.

于 2020-09-11T11:47:36.613 回答