added some stuff to reproduce some of our old training algorithms all as options in the GeneralizedSweetMarginTrainingExample