How to Solve NameError: name 'auc' is not defined -- sklearn

Solution: Import the 'auc' module

To Solve the error, add the following line to the top of your code.

from sklearn import auc

 

For more information:
Python sklearn auc