I am using the below code which is consistent with what I have been reading on tutorials such as https://medium.com/analytics-vidhya/hyperparameters-optimization-for-lightgb