Machine Learning in the JAM Framework