You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest to throw a warning, something like
if (nrow(model.frame(bl1)) != nrow(model.frame(bl2)))
warning("The design matrices of the two marginal base-learners imply a different number of rows: ",
nrow(model.frame(bl1)), ", ", nrow(model.frame(bl2)))
But maybe this behavior is intended?
@davidruegamer do you use %X% with differing row numbers?
The text was updated successfully, but these errors were encountered:
When two base-learners are connected by
%X%
and one of them has shorter data, the design matrix is simply repeated. SeeI was surprised that this does not throw an error or a warning.
This is due to
mf <- cbind(model.frame(bl1), model.frame(bl2))
in
https://github.com/boost-R/mboost/blob/master/R/bl.R#L1043
I would suggest to throw a warning, something like
But maybe this behavior is intended?
@davidruegamer do you use
%X%
with differing row numbers?The text was updated successfully, but these errors were encountered: