Classification based on Online Training