Closed nick-youngblut closed 2 years ago
We added that line simply to illustrate how one might go about obtaining a binary prediction, for instance if one wanted to compute accuracy instead of AUC. I have added a comment to clarify this. The key point in this section is that you cannot just call predict
with logits=FALSE
for this incremental fit, since that wouldn't take into account the offset from the partial model. So we have to sum up the contributions of both the partial model and the codacore log-ratio in logit space before binarizing.
Thanks for the clarification!
In the codacore docs for
Incremental fit
, the code is:What is the point of
yHat <- yHatLogit > 0
, sinceyHat
is not used after this line in the code?