setHyperPars(learner, ..., par.vals = list())
Learner
].LearnerProperties
,
addProperties
, hasProperties
,
removeProperties
,
setProperties
; Learner
,
makeLearner
; getHyperPars
;
getParamSet
; removeHyperPars
;
setId
; setPredictThreshold
;
setPredictType
; showHyperPars
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