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
modelPred<-rfeControl$functions$pred(fitObject, test_x[, retained, drop=FALSE])
if (is.data.frame(modelPred) | is.matrix(modelPred)) {
if (is.matrix(modelPred)) {
modelPred<- as.data.frame(modelPred)
## in the case where the function returns a matrix with a single column## make sure that it is named predif (ncol(modelPred) ==1)
names(modelPred) <-"pred"
}
modelPred$obs<-test_ymodelPred$Variables<-sizeValues[k]
} elsemodelPred<-data.frame(pred=modelPred,
obs=test_y,
Variables=sizeValues[k])
This should also merge in the perf_data df before saving. Or, do this outside of the workflow since the data is the same for each variable subset (within a resample)
The text was updated successfully, but these errors were encountered:
Currently:
This should also merge in the
perf_data
df before saving. Or, do this outside of the workflow since the data is the same for each variable subset (within a resample)The text was updated successfully, but these errors were encountered: