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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for ecgmentations-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07826b5c6301871a5574b834aa4ecfddf8ded38cf39012f10a0045b93d7ca02d |
|
MD5 | b64177d838d596462453638792730365 |
|
BLAKE2b-256 | e412b7b02c907be6547753277e8bc64d79ee20e78f13e88dd6daccdad64dbf0d |