predicting learning curves in python