Giter Site home page Giter Site logo

eden-kramer-lab / replay_classification Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 6.0 136.76 MB

State space models for categorization of replay content from multiunit spiking activity. Deng et al. 2016

License: GNU General Public License v3.0

Makefile 0.27% Python 99.67% Shell 0.06%
hippocampus replay state-space-model neuroscience replay-content-classification classify-replays neurons sharp-wave-ripple poisson marked-point-process

replay_classification's Introduction

Eden-Kramer-Lab

Website

replay_classification's People

Contributors

edeno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

replay_classification's Issues

Change how training data is entered into the decoder because of the state transition matrix needs the lagged position

In order to get the correct empirical transition matrix, you need the position from the previous time step versus the current time step. This can be a problem when entering training data because if you naively index the array before computing the previous position, the previous position won't be correct.

Options for fixing this are:

  • have the user give a training indicator function
  • have the user give the lagged position

Scale maximum likelihood so that peak is always 1

The likelihood gets small if there is a lot of data observed at a time point (in our case, if there were multiple spikes). This leads to numerical stability issues if this exceeds the floating point accuracy of the computer. We can scale the maximum likelihood as follows to avoid the issue:

exp(log(L) - max(log(L))

Differences from xinyi's code

  • Trajectory encoding (Outbound vs. Inbound Labeling)
  • Fixed error where inbound for one tetrode was miscategorized (at least in the code I saw)
  • xinyi normalizes her likelihood
  • time bin size - Iโ€™m doing everything at 1500 Hz sampling rate
  • position bins in likelihood - I evaluate at the center of the bins

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.