资源简介:
---
license: apache-2.0
tags:
- medical
size_categories:
- 1K<n<10K
---
This is a dataset for EEG signal denoising.
This dataset contains three different sub-datasets are [EEGdenoiseNet EMG](https://github.com/ncclabsustech/EEGdenoiseNet), [EEGdenoiseNet EOG](https://github.com/ncclabsustech/EEGdenoiseNet), and [semi- simulated EOG dataset 2016](https://data.mendeley.com/datasets/wb6yvr725d/1).
The files are structured as follows
```
eeg_denoise_dataset/
├── README.md
├── EEGDenoiseNet_EMG.tar.gz
├── SS2016_EOG.tar.gz
├── eeg_denoise_dataset.py
└── EEGDenoiseNet_EOG.tar.gz
```
The `*.tar.gz` holds different types of training data and test data
```
*.tar.gz/
├── trian
└── test
```
The file format in the zip file is as follows.
Usage.
- Method 1
Download the repository files to your local `your_path` directory, and use the `load_dataset` method to retrieve the corresponding training or testing dataset.
```
x from datasets import load_dataset
my_dataset_trian = load_dataset("{your_path}/eeg_denoise_dataset", "EEGDenoiseNet_EOG", split="train")
my_dataset_test = load_dataset("{your_path}/eeg_denoise_dataset", "EEGDenoiseNet_EOG", split="test")
```
- Method 2
If you just want to download one of the datasets and load it. You can download the compressed dataset you want to load into your local `your_path` and decompress it.
Once unzipped, you can load the dataset from that path. An example of loading the `EEGDenoiseNet_EMG` dataset is shown below.
```
from datasets import Dataset
my_dataset_trian = Dataset.load_from_disk("{your_path}/EEGDenoiseNet_EMG/train")
my_dataset_test = Dataset.load_from_disk("{your_path}/EEGDenoiseNet_EMG/test")
```
许可证: Apache-2.0
标签:
- 医疗
规模类别:
- 1K<n<10K
本数据集用于脑电信号(Electroencephalogram, EEG)去噪。
本数据集包含三个子数据集,分别为[EEGdenoiseNet 肌电(Electromyography, EMG)数据集](https://github.com/ncclabsustech/EEGdenoiseNet)、[EEGdenoiseNet 眼电(Electrooculography, EOG)数据集](https://github.com/ncclabsustech/EEGdenoiseNet)以及[2016年半仿真眼电数据集](https://data.mendeley.com/datasets/wb6yvr725d/1)。
数据集文件结构如下:
eeg_denoise_dataset/
├── README.md
├── EEGDenoiseNet_EMG.tar.gz
├── SS2016_EOG.tar.gz
├── eeg_denoise_dataset.py
└── EEGDenoiseNet_EOG.tar.gz
各`*.tar.gz`压缩包内包含对应子数据集的训练与测试数据,其内部结构如下:
*.tar.gz/
├── train
└── test
使用方法:
- 方法一
将仓库文件下载至本地`your_path`目录,通过`load_dataset`接口加载对应训练或测试数据集。示例代码如下:
from datasets import load_dataset
my_dataset_trian = load_dataset("{your_path}/eeg_denoise_dataset", "EEGDenoiseNet_EOG", split="train")
my_dataset_test = load_dataset("{your_path}/eeg_denoise_dataset", "EEGDenoiseNet_EOG", split="test")
(注:原文代码中`trian`为笔误,应为`train`)
- 方法二
若仅需下载并加载单个子数据集,可将目标压缩包下载至本地`your_path`目录后解压。解压完成后,即可从对应路径加载数据集。以下为加载`EEGDenoiseNet_EMG`数据集的示例代码:
from datasets import Dataset
my_dataset_trian = Dataset.load_from_disk("{your_path}/EEGDenoiseNet_EMG/train")
my_dataset_test = Dataset.load_from_disk("{your_path}/EEGDenoiseNet_EMG/test")