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

Solution: Import the 'roc_auc_score, classification_report' module

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

from sklearn import roc_auc_score

 

For more information:
Python roc_auc_score sklearn