VowpalWabbit / vowpal_wabbit

Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://vowpalwabbit.org
Other
8.49k stars 1.93k forks source link

feat: add a training loss calculation to the predict method of PLT reduction #4534

Closed mwydmuch closed 1 year ago

mwydmuch commented 1 year ago

This is a small change to PLT reduction that adds calculation of training loss also to the predict method when labels are available (e.g., when predicting for holdout dataset), instead of always returning 0. Which is a behavior that might cause confusion/problems to some users (as in #4511).

mwydmuch commented 1 year ago

Ok, all the checks have passed, so from my point, this is ready to be merged :)