The calculation of this function consists of the following steps:
Model values are calculated for the objects from the input dataset.
Top model values are selected for each group. The quantity is user-defined.
For example, let's assume that the number of top model values is limited to 2 and the following values are calculated for the input dataset:
Document ID Model value 1 10.4 2 20.1 3 1.1
In this case, the objects with indices 2 and 1 are selected.
The average of the label values is calculated for the objects selected at step 2.
For example, if the dataset consists of one group and the documents match the ones mentioned in the description of step 2, the AverageGain metric is calculated as follows:
The number of top samples in a group that are used to calculate the ranking metric. Top samples are either the samples with the largest approx values or the ones with the lowest target values if approx values are the same.
–1 (all label values are used)