bsfit.nodes.models.utils.get_data

bsfit.nodes.models.utils.get_data(database: pandas.core.frame.DataFrame)[source]

extract the data to fit from the database

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': the stimulus feature estimates

Returns

the stimulus features and associated estimates

Return type

(tuple)