Almost the entire loop for training set
Merge branch 'master' of https://github.com/dkang81/ocamlclient