@@ -4,7 +4,9 @@ makeRLearner.classif.plsdaCaret = function() {
44 package = " caret" ,
55 par.set = makeParamSet(
66 makeIntegerLearnerParam(id = " ncomp" , default = 2 , lower = 1 ),
7- makeDiscreteLearnerParam(id = " probMethod" , values = c(" softmax" , " Bayes" ), default = " softmax" )
7+ makeDiscreteLearnerParam(id = " probMethod" , values = c(" softmax" , " Bayes" ), default = " softmax" ),
8+ makeDiscreteLearnerParam(id = " method" , default = " kernelpls" ,
9+ values = c(" kernelpls" , " widekernelpls" , " simpls" , " oscorespls" ))
810 ),
911 properties = c(" numerics" , " prob" , " twoclass" ),
1012 name = " Partial Least Squares (PLS) Discriminant Analysis" ,
@@ -15,7 +17,7 @@ makeRLearner.classif.plsdaCaret = function() {
1517# ' @export
1618trainLearner.classif.plsdaCaret = function (.learner , .task , .subset , .weights , ... ) {
1719 d = getTaskData(.task , .subset , target.extra = TRUE )
18- caret :: plsda(d $ data , d $ target , method = " oscorespls " , ... )
20+ caret :: plsda(d $ data , d $ target , ... )
1921}
2022
2123# ' @export
0 commit comments