bsfit.nodes.models.utils.choose_percept¶
- bsfit.nodes.models.utils.choose_percept(readout: str, stim_mean_space: numpy.ndarray, posterior: numpy.ndarray)[source]¶
choose the percepts for measurement m_i caused by stimulus s_i
- Parameters
readout (str) – decision process (‘map’)
stim_mean_space (np.ndarray) – stimulus feature space
posterior (np.ndarray) – the posterior density
- Raises
ValueError – no percept exist
NotImplementedError – readout is not implemented
ValueError – percept does not belong to [1 360]
- Returns
percept (int): max_n_percept
- Return type
(np.ndarray)