Giter Club home page Giter Club logo

mir_su17_service's Introduction

MIR_SU17_Service

The file 'Cython DTW' contains the necessary files to run, test, and benchmark the runtime efficiency of my DTW implementation.

To just run the system you need only: dtw.pyx

An example run of the system would consist of the following python script:

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' import numpy as np import pyximport; pyximport.install() import dtw

setup your cost function

cost = np.array([[5,9,9,9], [9,8,2,9], [9,9,5,3]], dtype=np.float64)

set parameters

dn = [1,1,2,1] # allowed steps along the rows dm = [1,2,1,3] # allowed steps along the cols dw = [1.0, 1.0, 2.0, 3.0] # weight of each step subsequence = True # do subsequence matching

create a dictionary that holds your parameters - you'll send this to the DTW function

parameter = {'dn': dn, 'dm': dm, 'dw': dw, 'SubSequence': subsequence}

run the DTW algorithm

[accumCost, steps] = dtw.DTW_Cost_To_AccumCostAndSteps(cost, parameter) [path, endCol, endCost] = dtw.DTW_GetPath(accumCost, steps, parameter)

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

To test the system against the Audio Labs implementation download the entire 'Cython DTW' and 'DTW_AudioLabs' files. Then run testCythonDTW_python.py in python followed by testCythonDTW.m in matlab.

To benchmark the runtime efficiency of the code, use PythonDTWTiming.py for my python implementation, and matlabDTWTiming for the matlab/c++ implementation. The matlab/c++ implementation is a bit faster.

mir_su17_service's People

Contributors

castrong avatar hmc-horse-s17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.