Skip to content

Commit 7e829c9

Browse files
committed
1 parent 432be39 commit 7e829c9

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

NAMESPACE

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
import(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)
122
S3method(.mlPredictionGetModelType,kknn)
133
S3method(.mlPredictionGetModelType,lda)
144
S3method(.mlPredictionGetModelType,lm)

R/mlPrediction.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)