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 upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
In the
argsofhyper_bbs()the argumentpredictionis used to tell the base-learner when the model is fitted and when it is just used for prediction.I just realized that this argument is not passed when the base-learner is used in combination with
%O%, as the argument is not passed innewX1andnewX2, in the code lineshttps://github.com/hofnerb/mboost/blob/master/pkg/mboostPatch/R/bkronecker.R#L244
https://github.com/hofnerb/mboost/blob/master/pkg/mboostPatch/R/bkronecker.R#L254
I think the bug can be fixed by setting
respectively.
In the following, a MWE is given were the problem occurs in predict().
I suspect, that the same issue applies for
%X%and%+%, as in those functionspredictionis not passed explicitly either, see e.g. ,https://github.com/hofnerb/mboost/blob/master/pkg/mboostPatch/R/bl.R#L1088
However, I did not check in that cases.