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 uppredict for bsignal seems broken #17
Comments
|
The error occurs in
In newdata, the functional data has class "model.matrix", "array" |
|
As a quick fix, you can set all the data matrixes of functional covariates to class "AsIs":
|
|
Setting all functional variable matrices to class "AsIS" works now and also used to work before. So we could change the example code accordingly and add a check in FDboost() for the class of functional variables telling the user that he/she has to set functional variables to class 'AsIs'. Or we make sure that FDboost can also handle other classes for functional variables like a numeric matrix, as it did before. What do you think @davidruegamer @Almond-S ? |
|
@sbrockhaus Thanks for looking into this and your workaround. I think predict should be consistent with the original fitting behaviour, e.g., if you can input numeric matrices into FDboost to get the initial fit, you should also be able to feed them into predict function without further pre-processing. |
The example from the vignette
FLAM_fuelseems broken, the "predict" step does lead to errors