initial pass at a non-POS specific train function for AvgPerceptrons