Source code for Ambit Training