You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this because I got different column subsampling behaviour when using a built-in objective like MSE and when using a custom objective. I thought either: the reported seed in the booster.txt was wrong, or that columns are subsampled twice each iteration when using a custom objective, but only once when using a built-in objective (via perhaps an extra call to 'ResetByTree').
Thanks for using LightGBM and for your thorough report.
What is commit 8d01d648942a427f6bb4962dc3f4330e005fa495? I don't see that commit in LightGBM's history: 8d01d64.
I strongly suspect that that is from some version of LightGBM prior to v4.0.0. The parameter fobj was removed from lgb.train() in #5052, so your example code yields the following error on latest master (8203306).
Traceback (most recent call last):
File "", line 1, in
TypeError: train() got an unexpected keyword argument 'fobj'
I ran the code from your report today on that latest commit, with the following modifications:
I'm not sure exactly what's happening, but that narrows it down a bit.
I can hack around the seeds to make it work:
I did not understand this comment and example. Do you just mean that you experimented with different values of seeds until you found a combination of 2 different ones led to the models being identical?
Description
I ran into this because I got different column subsampling behaviour when using a built-in objective like MSE and when using a custom objective. I thought either: the reported seed in the booster.txt was wrong, or that columns are subsampled twice each iteration when using a custom objective, but only once when using a built-in objective (via perhaps an extra call to 'ResetByTree').
Reproducible example
This works when feature fraction is equal to 1.0 only. It breaks when feature_fraction = 0.5 for instance.
I can hack around the seeds to make it work:
Environment info
LightGBM version or commit hash: 8d01d648942a427f6bb4962dc3f4330e005fa495
Command(s) you used to install LightGBM
The text was updated successfully, but these errors were encountered: