0
$\begingroup$

Using the Light GBM regressor, I have trained my data and, using Grid Search, I got the best parameters, but while testing with the best parameters I am getting different results each time, which means the model produces different results for each test iteration.

I ran the lightgbm twice with the same parameters, but got different results in validation. I found the only random seed parameter to be baggingSeed. After fixing baggingSeed, the problem also occurred. Should I fix any other parameters?

$\endgroup$
1
  • $\begingroup$ There are a number of "seed" parameters available, but these are all set by default to fixed integers. Perhaps try deterministic=True? $\endgroup$
    – Ben Reiniger
    Sep 20, 2021 at 18:25

1 Answer 1

0
$\begingroup$

It seems it currently has an issue with data leakage in the cross validation function: https://github.com/microsoft/LightGBM/issues/4319

$\endgroup$
1
  • $\begingroup$ While this is an important note, I do not see how it relates to the question. $\endgroup$
    – Ben Reiniger
    Sep 20, 2021 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.