File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 11import(jaspBase)
2- S3method(.decodeJaspMLobject,kknn)
3- S3method(.decodeJaspMLobject,lda)
4- S3method(.decodeJaspMLobject,lm)
5- S3method(.decodeJaspMLobject,gbm)
6- S3method(.decodeJaspMLobject,randomForest)
7- S3method(.decodeJaspMLobject,cv.glmnet)
8- S3method(.decodeJaspMLobject,nn)
9- S3method(.decodeJaspMLobject,rpart)
10- S3method(.decodeJaspMLobject,svm)
11- S3method(.decodeJaspMLobject,naiveBayes)
122S3method(.mlPredictionGetModelType,kknn)
133S3method(.mlPredictionGetModelType,lda)
144S3method(.mlPredictionGetModelType,lm)
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ is.jaspMachineLearning <- function(x) {
249249 dataset <- .scaleNumericData(dataset )
250250 }
251251 # Select only the predictors in the model to prevent accidental double column names
252- dataset <- dataset [, which(decodeColNames(colnames(dataset )) %in% model [[" jaspVars" ]][[" decoded" ]]$ predictors )]
252+ dataset <- dataset [, which(decodeColNames(colnames(dataset )) %in% model [[" jaspVars" ]][[" decoded" ]]$ predictors ), drop = FALSE ]
253253 # Ensure the column names in the dataset match those in the training data
254254 colnames(dataset ) <- .matchDecodedNames(colnames(dataset ), model )
255255 # Retrieve the training set
You can’t perform that action at this time.
0 commit comments