SkillAgentSearch skills...

Ezdtw

A simple, pure python dtw (dynamic time warping) implementation.

Install / Use

/learn @kylerbrown/Ezdtw
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ezdtw

example

ezdtw is a pure Python dynamic time warping library, intended for warping acoustic spectrograms.

This implementation uses two performance tricks:

  1. Distances are computed using Scipy's cdist function.
  2. The cumulative minimum distance calculation uses the numba jit compiler for a 500x speedup.

Computing the warp path between two typical zebra finch song motif spectrograms takes approximately 60ms of computation time.

Requirments

  • Python 3
  • numpy
  • scipy
  • numba

You may want to use resin for creating spectrograms.

Installation

git clone https://github.com/kylerbrown/ezdtw.git
cd ezdtw
pip install .

Usage

from ezdtw import dtw

x, y = dtw(A, B)

See an example in the example/ folder.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated11mo ago
Forks0

Languages

Python

Security Score

77/100

Audited on Apr 14, 2025

No findings