Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up%X% with base-learners that have design matrices with different row numbers #79
Comments
|
btw. mydat <- list(x_10 = 1:10, x_20 = 1:20, y = rnorm(20))
## works without throwing an error / warning, ...
m2 <- mboost(y ~ bols(x_20, by = x_10), data = mydat)
## ... as x_10 is simply repeated
extract(m2) |
|
Other base-learners and situations showed the same behavior. See |
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?