pseudo-code for ecgs training
Merge branch 'fast_cgs' of https://github.com/inpho/vsm into fast_cgs