bsfit.nodes.models.utils.fit_maxlogl¶
- bsfit.nodes.models.utils.fit_maxlogl(database: pandas.core.frame.DataFrame, init_p: dict, prior_shape: str, prior_mode: float, readout: str) Dict[str, Any] [source]¶
Fit stimulus feature estimates
- Parameters
database (pd.DataFrame) –
dataset with columns:
'stim_mean': the stimulus features (e.g., motion direction) 'stim_std': the stimulus feature strengths 'prior_mode': mode of prior 'prior_std': std of the prior 'prior_shape': density function of the prior (e.g., "vonMisesPrior") 'estimate': the estimate data
init_p (dict) – initial parameters
prior_shape (str) – (“vonMisesPrior”), the prior function
prior_mode – (float): the mode of the prior
- Returns
results of the fit
- Return type
Dict[str, Any]