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 zjn given others. |
|
Calculate new user mean vector m∗ui. |
|
Calculate new diagonals of the user covariance matrix Σ∗ui. |
|
Calculate new item mean vector m∗vj. |
|
Calculate new diagonals of the item covariance matrix Σ∗vj. |
|
Calculate new variational parameters of each “topic” dirichlet distribution {Δ⋆k}Kk=1 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. |