Learning how to exploit sources of information