-
Notifications
You must be signed in to change notification settings - Fork 15
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
error occurs during training #39
Comments
Hi Lara, |
Hi Lara, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear Authors:
I use R version 4.1.2 and run commands line by line in the script of Qoala_T_B_subset_based_github.R. An error occurs during training step:
rf.tune = train(y=training$Rating,
x=subset(training, select=-c(Rating)),
method = "rf",
metric = "ROC",
trControl = ctrl,
ntree = 501,
tuneGrid=expand.grid(mtry = c(8)),
verbose=FALSE)
and the error message is:
Error in apply(testOutput[, lev], 1, function(x) x/sum(x)) :
dim(X) must have a positive length
Calls: train -> train.default -> evalSummaryFunction -> t -> apply
Execution halted
Is there any suggestion?
The text was updated successfully, but these errors were encountered: