Batch learning vs. online learning