A far-sighted approach to machine learning