Wireless Communications and Mobile Computing / 2019 / Article / Alg 4

Research Article

Estimating Network Flow Length Distributions via Bayesian Nonnegative Tensor Factorization

Algorithm 4

Variational Bayes algorithm.
(1)function ThinNTF_VB (, S, )
  //Randomly initialize factors and latent tensor
(2) ⟵ RandInit ()
(3)repeat
(4)  Calculate and as in equations (21)–(23).
(5)  Calculate and similarly.
(6)  Calculate and similarly.
(7)  Calculate as in equation (24).
(8)  Calculate similarly.
(9)  Calculate similarly.
(10)  Calculate as in equation (19).
(11)  Calculate lower bound
(12)until Max iterations are reached or lower bound converged
(13)return F, H, D,