How to Solve NameError: name 'neighbors' is not defined -- sklearn
Solution: Import the 'neighbors' module
To Solve the error, add the following line to the top of your code.
from sklearn import neighbors
For more information:
Python sklearn neighbors