learning curve and polyFeature functions
final