• Stars
    star
    744
  • Rank 60,965 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Python implementation of FastDTW

fastdtw

Python implementation of FastDTW [1], which is an approximate Dynamic Time Warping (DTW) algorithm that provides optimal or near-optimal alignments with an O(N) time and memory complexity.

Install

pip install fastdtw

Example

import numpy as np
from scipy.spatial.distance import euclidean

from fastdtw import fastdtw

x = np.array([[1,1], [2,2], [3,3], [4,4], [5,5]])
y = np.array([[2,2], [3,3], [4,4]])
distance, path = fastdtw(x, y, dist=euclidean)
print(distance)

References

[1]Stan Salvador, and Philip Chan. "FastDTW: Toward accurate dynamic time warping in linear time and space." Intelligent Data Analysis 11.5 (2007): 561-580.

More Repositories

1

SM-15

Spaced repetition for memorizing tons of things.
CoffeeScript
157
star
2

type-graphql-dataloader

TypeGraphQL + DataLoader + TypeORM made easy
TypeScript
150
star
3

universal-divergence

A Python module for estimating divergence between two sets of samples.
Python
15
star
4

MolyHaH

Chrome extension for Hit-a-Hint
CoffeeScript
13
star
5

xml2data

A library for converting XML into native data according to a template akin to css-selector.
Python
4
star
6

flashward

Flashward helps lerners memorize a number of foreign words.
JavaScript
3
star
7

randomized-hopcroft-karp

An algorithm to find maximum cardinality matching of bipartite graph
TypeScript
3
star
8

moly-tabmenu2

Chrome extension for switching tabs more efficiently.
TypeScript
3
star
9

hapt

A key bindings listener for JavaScript.
CoffeeScript
2
star
10

geohashtree

A class library for storing and operating geohash-indexed data.
Python
2
star
11

MolyCroppingSearch

A Chrome extension to search what you see.
CoffeeScript
1
star
12

stream-dl

A command line utility to download streaming videos from websites.
JavaScript
1
star
13

friends2timeline

A web service which creates a Twitter list which has friends of your friends as members.
1
star
14

Corset

Twitter CORS proxy server
CoffeeScript
1
star
15

MolyKeys

A Chrome extension for key bindings
CoffeeScript
1
star
16

Kaggle-DigitRecognizer

Caffe with LeNet on MNIST for Kaggle
Python
1
star
17

HackerNews-Comment-Filter

A bookmarklet to show HN comments that match queries.
JavaScript
1
star
18

MolyMapScroll

A Chrome extension that shows a mini map of a seeing website.
JavaScript
1
star