How much data is sufficient to learn high-performing algorithms?