Giter Site home page Giter Site logo

hmmsort.py's Introduction

Build Status Coverage Status

hmmsort.py's People

Contributors

anjmehta8 avatar asira1 avatar grero avatar shihchengyen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

hmmsort.py's Issues

Recognise templates with a large positive component

Current, the template finding algorithm seems to not identify templates with large positive components. This is illustrated in the following figure
weird_matches
Here, there is no template to separate the positive going signals, and they get grouped with the template showing a more 'normal' negative going spike. For this particular data set, even the initial 8 templates, after training, do not contain a signal with the positive component.
weird_matches_all_templates
One possibility is to change the template initialisation to include a few with positive going spikes as well.

Copy cinv to hmmsort

The cinv variable, which is an estimate of the inverse covariance matrix, should be copied it hmmsort.mat so that we don't have to rely on the spike_templates.hdf5 file.

Possible transpose error

Sometimes the spike forms are truncated, indicating a problem with transposing the waveform matrix.

Multiple merges

Currently, I believe we can only merge waveforms into a single unit. We should allow merging into multiple templates as well.

Create a simple test case

Right now there are no tests for the algorithm. We should have something that at the minimum makes sure that the code runs.

Cleaning of templates

It struck me as I was looking at some of the templates return by hmm that perhaps we should do an additional cleanup step of the templates. We could fit each template to a damped sinusoid and use that fit as the templates fed to hmm_decode.

Small templates

It seems like templates are selected based on the energy of a noise patch rather than the peak exceeding some multiple of the estimated standard deviation. We could change this, so that the selection is more in line with way we expect from a visual inspection of the templates.

Shifted templates

Some templates appear to have a very long pre-excitation phase, which causes the template to be clipped.
shifted_templates

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.