How to Solve NameError: name 'LGBMClassifier' is not defined -- lightgbm

Solution: Import the 'LGBMClassifier' module

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

from lightgbm import LGBMClassifier

 

For more information:
Python lightgbm LGBMClassifier