example for incrementally training classifier