fit a learning curve