what is label_gain in LightGBM ranker?

Viewed 238

I basically want to know what that parameter is and what kind of input it takes. I want to understand how to use it in different cases.

1 Answers

According to the official doc,

label_gain, default=0,1,3,7,15,31,63,..., type=multi-double
– used in lambdarank, relevant gain for labels. For example, the gain of label 2 is 3 if using default label
gains.
– Separate by ,

So essentially if your data has multiple labels, each label will correspond to a different gain value in the optimization process, specified by this list.

Related