How to Solve NameError: name 'specificity_score' is not defined -- imblearn

Solution: Import the 'specificity_score' module

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

from imblearn import specificity_score

 

For more information:
Python imblearn specificity_score