Closed RoelVerbelen closed 1 month ago
Thanks for the report @RoelVerbelen !
This sounds like a fantastic idea.
Unfortunately, I'm overcommitted right now. But I'd be happy to review and merge.
Does @LamAdr have time to look into this?
In about 2-3 weeks, absolutely
Confirming that this is resolved in the latest version of the code, thanks a lot!
The padding logic in lines has some undesired effects when using the
by
argument inpredictions()
. Reason being that the unpadding logic doesn't get applied in this scenario.Illustrative example: notice how the average for
cut == "Ideal"
is off when usingpredictions(..., by="cut")
on the new data.Maybe the most elegant solution to resolve this bug is to avoid the padding and unpadding logic altogether based on the design matrix suggestion in here?
Happy to hear your thoughts @vincentarelbundock.