remove online learning, add minimum prediction