All I'm doing is running the supplied code on this page: http://scikit-learn.org/stable/auto_examples/plot_precision_recall.html to find ROC curves.
All I've done is copied the code, but I'm getting this error:
TypeError: average_precision_score() got an unexpected keyword argument 'average'
What should I do to remove the error? I will want to use this for the multiclass case, so I do want to keep the "average='micro'" part.