This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
import io | |
import os | |
from pathlib import Path | |
import re | |
import tarfile | |
import datasets | |
from datasets.data_files import DataFilesDict | |
from datasets.download.download_manager import DownloadManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gzip | |
import os | |
import pickle | |
import warnings | |
import numpy as np | |
import wfdb | |
# https://wfdb.readthedocs.io/en/latest/io.html#wfdb.io.show_ann_labels | |
label_mapping = {"btype": {0: ('Q', ''), # Undefined: Unclassifiable beat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
datalad remove * | |
cd .annex-cache/ | |
git-annex uninit | |
cd .. | |
rm -rf .annex-cache/ |