Learning what to expect (in visual perception)