Research Article

Multiclass Sparse Bayesian Regression for fMRI-Based Prediction

Algorithm 2

Gibbs-MCBR algorithm.
Initialize ๐›ผ 1 , ๐›ผ 2 , ๐œ† 1 , ๐œ† 2 and ๐œ‚ ๐‘˜
Randomly initialize ๐‘ง
Set a number of iterations burn number for burn-in
Set a number of iterations max steps
Repeat
โ€ƒCompute ฮฃ using (B.1) and ๐œ‡ using (B.2).
โ€ƒSample ๐ฐ in ๐’ฉ ( ๐ฐ โˆฃ ๐œ‡ , ๐šบ ) .
โ€ƒCompute ๐‘™ 1 using (B.3) and ๐‘™ 2 using (B.4).
โ€ƒSample ๐œ† in โˆ ๐‘˜ = ๐พ ๐‘˜ = 1 ฮ“ ( ๐œ† ๐‘˜ โˆฃ ๐‘™ 1 , ๐‘˜ , ๐‘™ 2 , ๐‘˜ ) .
โ€ƒCompute ๐‘Ž 1 using (B.5) and ๐‘Ž 2 using (B.6).
โ€ƒSample ๐›ผ in ฮ“ ( ๐‘Ž 1 , ๐‘Ž 2 ) .
โ€ƒCompute ๐œŒ ๐‘— ๐‘˜ using (B.7).
โ€ƒSample ๐ณ in m u l t ( e x p ๐œŒ ๐‘— , 1 , โ€ฆ , e x p ๐œŒ ๐‘— , ๐พ ) .
โ€ƒCompute ๐‘‘ ๐‘˜ using (B.8).
โ€ƒSample ๐œ‹ ๐‘˜ in D i r ( ๐‘‘ ๐‘˜ ) .
until max steps;
return Average value of w after burn number iterations.