bsfit.nodes.models.utils¶
Useful functions for modeling
Copyright 2022 by Steeve Laquitaine, GNU license
Functions
|
choose the percepts for measurement m_i caused by stimulus s_i |
|
do bayesian inference |
|
Fit stimulus feature estimates |
|
flattens list of list |
|
set model and task parameters |
|
Create a bayes lookup matrix based on Girshick paper |
|
get the set of row combinations |
|
extract the data to fit from the database |
|
calculate data statistics |
|
get the fit intermediate variable |
|
calculate the learnt prior density |
|
calculate the log(likelihood) of the data given the model |
|
calculate - log(likelihood) and akaike information criterion |
|
calculate percept likelihoods. |
|
calculate prediction statistics |
|
get data probability density |
|
get estimate probability density |
|
get the percept probability density |
|
get model-generated stochastic choices |
|
find fit parameters in dictionary |
|
""get model prediction at trial or summary statistics level |
|
simulate estimate data per condition |
|
""get model predictions |
|
unpack a dictionary into a flat list |