Online Learning and Offline Learning