2. API References¶
2.1. recsys.ctr
¶
Online Bayesian Inference algorithm for Collaborative Topic Regression model (obi-CTR) |
2.2. recsys.utils
¶
Calculate event probabilities of the conditional distribution of one variable \(z_{jn}\) given others. |
|
Calculate new user mean vector \(\mathbf{m}_{ui}^{*}\). |
|
Calculate new diagonals of the user covariance matrix \(\Sigma_{ui}^{*}\). |
|
Calculate new item mean vector \(\mathbf{m}_{vj}^{*}\). |
|
Calculate new diagonals of the item covariance matrix \(\Sigma_{vj}^{*}\). |
|
Calculate new variational parameters of each “topic” dirichlet distribution \(\{\Delta_k^{\star}\}_{k=1}^K\) in place. |
|
Convert sparse word count vector to word ids. |
|
Split the rating matrix into two rating matrix with the same shape but difference number of ratings. |