# Toolbox for inference in generalized linear models for spiking neurons

## Files

**GLMToolBox.zip**(300 KB)

## Description

This toolbox provides means for inference in generalized linear models for spiking neurons. This includes calculating MAP estimates for L1 and L2 priors as well as approximations to the posterior moments based on the Expectation Propagation algorithm.## Installation

a) Make sure the MinFunc toolbox is installed. Available at
http://www.cs.ubc.ca/~schmidtm/Software/minFunc.html

http://www.cs.ubc.ca/~schmidtm/Software/minFunc_20090930.zip

http://www.cs.ubc.ca/~schmidtm/Software/minFunc_20090930.zip

b) Install the lightspeed toolbox (actually only

*normcdfln.m*is needed).

c) Unpack the archive.

`tar -xvzf glmToolBox.tar.gz`

d) If necessary, compile the mex-code. Compiled versions for Windows (32bit) and Linux (64bit) are contained in the archive.

```
cd ./GLMToolBox/code/mexCode/
```

make install

## Usage

a) Execute`adjustPath`

from the main-directory before using any of the code.b) See examples for basic usage. Scripts are located in

*<main-directory>/exampleScripts/*.

## License

The code is published under the GNU Gneral Public License (http://www.opensource.org/licenses/gpl-3.0.html). The code is provided "as is" and has no warranty whatsoever.## References

S. Gerwinn,
J. Macke, and
M. Bethge

#bayesian inference, #generalized linear model, #spiking neurons

Code, URL, DOI, PDF, BibTex

**Bayesian inference for generalized linear models for spiking neurons***Frontiers in Computational Neuroscience,***4**, 2010#bayesian inference, #generalized linear model, #spiking neurons

Code, URL, DOI, PDF, BibTex