-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation_data=NULL #6
Comments
Do you have a reproducible example? |
library(Laurae) data("airquality") label_train<-airquality[,1] m<-CascadeForest( cascade_lr = 1, I think you sholud change at row 306 of Cascade forest's script in validation_data <- if (!is.null(validation_data)) { |
@ablanda My home repo is currently out of sync with the main repo, so I will fix it later. You can temporarily fix this by doing this like you said: https://github.com/Laurae2/Laurae/blob/master/R/CascadeForest.R#L306-L307 if (!is.null(validation_data)) {
validation_data <- Laurae::DTcbind(validation_data, model[[i]]$valid_preds) # Routine overwrites if column names are identical
validation_start <- if (boosting) {rowMeans(model[[i]]$valid_preds)} else {NULL}
} do the same for the if here: https://github.com/Laurae2/Laurae/blob/master/R/CascadeForest.R#L445-L446 |
Hi, I try to set validation_data=NULL, but after 1 Layer it stops by this message: Error in alloc.col(dt1, length(colnames(dt1)) + length(cols)) :
alloccol has been passed a NULL dt
Could you help me? Thanks
The text was updated successfully, but these errors were encountered: