Risk Preferences of Learning Algorithms