From: Infinite mixture-of-experts model for sparse survival regression with application to breast cancer
1: | Input: N observations D = (x i , t i ). |
2: | Initialize: c i = random cluster assignments and parameters . |
3: | Draw from the posterior of the joint distribution p(π, Φ*, c) by drawing from the conditionals. |
4: | while NotCoverged do |
5: | Sample Φ* | π, c, D - This is carried out individually for each parameter in the model conditioned on the rest. |
6: | Sample c | Φ*, π, D - For i = 1,…, N, draw values , c i = 1,…, M. |
7: | Sample π | Φ*, c, D - The mixture proportions are drawn based on the posterior P(π|α)P(c|π). |
8: | end while |