Statistical learning under resource constraints