add training and predicting examples
add training and predicting examples
write models to output dir