The repository is the simplified code for the Yoo et al., 2019, Nature Neuroscience. This includes physics based prediction generative model and the generalized linear model (GLM). One day worth of data is included and detailed comments are written at the top of each code.