You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for my late response. I somehow overlooked your comment.
The length of modnames vector must be the same number of your validation sets. For instance, it should be modnames = rep("model_name", 10) if your data contains 10-fold cross-validation for a single model/classifier. It can be modnames = rep(c("A", "B"), each=5) for 5-fold cross-validation for two classifiers A and B.
Alternatively, you can use auto-expansion by specifying dsids and modnames at the same time. For instance, dsids = 1:5, modnames = c("A", "B") expands to dsids = c(1,2,3,4,5,1,2,3,4,5), modnames = c("A","A","A","A","A","B","B","B","B","B") inside the mmdata function.
The auto-expansion approach requires that the product of the lengths of dsids and modnames should be matched with the total number of your validation sets. For example, length(dsids) * length(modnames) = 5 * 2 = 10 indicates that it will be extended for a data set of 5-fold cross-validation with two classifiers.
I am getting an error when I set the argument
modnames
.Here a reproducible example:
and both the following lines generate an error
What am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: