iver56 / audiomentations

A Python library for audio data augmentation. Inspired by albumentations. Useful for machine learning.
https://iver56.github.io/audiomentations/
MIT License
1.76k stars 183 forks source link

Improve Shift #302

Closed iver56 closed 10 months ago

iver56 commented 10 months ago

Breaking changes, I know. I didn't do the whole backwards compatibility dance this time because it would take a lot of extra time and clutter the code. audiomentations is still in alpha, so the API is technically not stable. I will document the API changes well in the changelog.

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 97.05% and project coverage change: +0.01% :tada:

Comparison is base (53eb8b0) 94.47% compared to head (71d71e0) 94.48%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #302 +/- ## ========================================== + Coverage 94.47% 94.48% +0.01% ========================================== Files 45 45 Lines 2064 2086 +22 ========================================== + Hits 1950 1971 +21 - Misses 114 115 +1 ``` | [Files Changed](https://app.codecov.io/gh/iver56/audiomentations/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal) | Coverage Δ | | |---|---|---| | [audiomentations/core/composition.py](https://app.codecov.io/gh/iver56/audiomentations/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL2NvcmUvY29tcG9zaXRpb24ucHk=) | `95.12% <ø> (ø)` | | | [audiomentations/augmentations/shift.py](https://app.codecov.io/gh/iver56/audiomentations/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Iver+Jordal#diff-YXVkaW9tZW50YXRpb25zL2F1Z21lbnRhdGlvbnMvc2hpZnQucHk=) | `98.68% <97.05%> (-1.32%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.