powered by
setHyperPars(learner, ..., par.vals = list())
Learner
character(1)
makeLearner
par.vals
list
...
LearnerProperties
getClassWeightParam
getHyperPars
getLearnerId
getLearnerPackages
getLearnerParVals
getLearnerParamSet
getLearnerPredictType
getLearnerShortName
getLearnerType
getParamSet
makeLearners
removeHyperPars
setId
setLearnerId
setPredictThreshold
setPredictType
cl1 = makeLearner("classif.ksvm", sigma = 1) cl2 = setHyperPars(cl1, sigma = 10, par.vals = list(C = 2)) print(cl1) # note the now set and altered hyperparameters: print(cl2)
Run the code above in your browser using DataLab