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

Solution: Import the 'TomekLinks' module

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

from imblearn import TomekLinks

 

For more information:
Python imblearn TomekLinks