In the documented binary CTR example, three previous same-category rows contain two positives and prior=0.5. What…
Classic MLLevel: IntermediateCatBoost · Categorical statistics
In the documented binary CTR example, three previous same-category rows contain two positives and prior=0.5. What value does the next row receive?
Hints
- Use the source formula with numerator and denominator smoothing.
- Do not include the current row in either historical count.
Answer
(2+0.5)/(3+1)=0.625. Only earlier rows in the permutation contribute; including the current target would leak its label into its own encoding.
Source and licence: CatBoost · Categorical statistics · Apache-2.0 · answer: Quantoros editorial