bsfit.nodes.models.utils.get_learnt_prior¶
- bsfit.nodes.models.utils.get_learnt_prior(percept_space: numpy.ndarray, prior_mode: numpy.ndarray, k_prior: float, prior_shape: str, stim_mean_space)[source]¶
calculate the learnt prior density
- Parameters
percept_space (np.ndarray) – percept space
prior_mode (np.ndarray) – the mode of the prior
k_prior (float) – the prior concentration
prior_shape (str) – the function of the prior (‘vonMisesPrior’)
stim_mean_space (np.ndarray) – stimulus feature space (1:1:360)
- Returns
a matrix of learnt priors (stimulus feature space x measurement space)
- Return type
(np.ndarray)