bsfit.nodes.models.utils.format_params¶
- bsfit.nodes.models.utils.format_params(database: pandas.core.frame.DataFrame, init_p: dict, prior_shape: str, prior_mode: float, readout: str) dict [source]¶
set model and task parameters
- Parameters
database (pd.DataFrame) –
dataset with columns:
'stim_mean': the stimulus features (e.g., motion direction) 'stim_std': the stimulus feature strengths 'prior_mode': the mode of prior 'prior_std': the std of the prior 'prior_shape': the prior function (e.g., "vonMisesPrior") 'estimate' (optional): the estimates
init_p (dict) – the model initial parameters
prior_shape (str) – the prior function (e.g., “vonMisesPrior”)
prior_mode (float) – the mode of the prior
readout (str) – the decision process (“map”)
- Returns
the formatted model and task parameters
- Return type
(dict)