brainbox.modeling.linear

GLM fitting utilities based on NeuroGLM by Il Memming Park, Jonathan Pillow:

https://github.com/pillowlab/neuroGLM

Berk Gercek International Brain Lab, 2020

Classes

LinearGLM

class LinearGLM(design_matrix, spk_times, spk_clu, binwidth=0.02, metric='rsq', estimator=None, train=0.8, blocktrain=False, mintrials=100)[source]

Bases: brainbox.modeling.neural_model.NeuralModel

score()[source]

Score model using chosen metric

Returns

Score using chosen metric (defined at instantiation) for each unit fit by the model.

Return type

pandas.Series