clean & optimize the code
-06/02/2022: clean the code for labeled data. 😊
- use C code for PGdraw;
- replace the user-defined NUTS with MATLAB built-in HMC;
- pretty fast with (1) & (2);
- BDMCMC works well, infer (p=2) correctly (just check first 1000 iterations).
// TODO:
- parallel computing; (done)
- clean the code for clustering;
- double check the split-merge: should change after using PG-FFBS-MH;
- If can easily do, write FFBS in C.