2.2.2. recsys.utils.cy_utils.cy_calc_new_user_mean¶
-
recsys.utils.cy_utils.
cy_calc_new_user_mean
()¶ Calculate new user mean vector \(\mathbf{m}_{ui}^{*}\). The formula is described in the equation (6) of the obi-CTR paper.
- Parameters
user_mean (ndarray, shape = (n_latent_dims,)) – User mean vector \(\mathbf{m}_{ui}\).
user_cov (ndarray, shape = (n_latent_dims,)) – Diagonals of user covariance matrix \(\Sigma_{ui}\).
item_mean (ndarray, shape = (n_latent_dims,)) – Item mean vector \(\mathbf{m}_{vj}\).
rating (int or float) – Rating given by the user \(i\) to the item \(j\).
hypa_rat (int or float) – Prior of “rating” normal distribution \(\sigma_{r}^2\).
- Returns
new_user_mean – New user mean vector \(\mathbf{m}_{ui}^{*}\).
- Return type
ndarray, shape = (n_latent_dims,)