Taking a global perspective to learning