Ecg augmentation library and easy to use wrapper around other libraries
Project description
Ecgmentations
Ecgmentations is a Python library for ecg augmentation. Ecg augmentation is used in deep learning to increase the quality of trained models. The purpose of ecg augmentation is to create new training samples from the existing data.
Table of contents
Authors
Rostislav Epifanov — Researcher at Novosibirsk State University
Installation
Installation from PyPI:
pip install ecgmentations
Installation from GitHub:
pip install git+https://github.com/rostepifanov/ecgmentations
A simple example
import numpy as np
import ecgmentations as E
# Declare an augmentation pipeline
transform = E.Sequential([
E.Reverse(p=0.5),
E.ChannelShuffle(p=0.06),
])
# Create example ecg
ecg = np.ones((12, 5000)).T
# Augment an ecg
transformed = transform(ecg=ecg)
transformed_ecg = transformed['ecg']
Citing
If you find this library useful for your research, please consider citing:
@misc{epifanov2023ecgmentations,
Author = {Rostislav Epifanov},
Title = {Ecgmentations},
Year = {2023},
Publisher = {GitHub},
Journal = {GitHub repository},
Howpublished = {\url{https://github.com/rostepifanov/ecgmentations}}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecgmentations-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: ecgmentations-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07826b5c6301871a5574b834aa4ecfddf8ded38cf39012f10a0045b93d7ca02d
|
|
| MD5 |
b64177d838d596462453638792730365
|
|
| BLAKE2b-256 |
e412b7b02c907be6547753277e8bc64d79ee20e78f13e88dd6daccdad64dbf0d
|