## Not run:
# ## Generating several variants of the "svm" learner using different
# ## values of the parameter "cost", under the "umbrella" of a standard
# ## workflow (i.e. it assumes wf="standardWF")
# library(e1071)
# workflowVariants(learner="svm",cost=c(1,2,5,10))
#
# ## variants of a user defined workflow (assumes that function "userWF"
# ## is defined and "understands" parameters par1 and par2)
# workflowVariants(wf="userWF",par1=c(0.1,0.4),par2=c(-10,10))
#
# ## Variants of a standard time series workflows (it assumes that it is a
# ## time series workflow because of the use of the "type" parameter,
# ## otherwise you could make it explicit by adding wf="timeseriesWF").
# workflowVariants(learner="svm",type=c("slide","grow"),gamma=c(0.1,0.4))
# ## or equivalently
# workflowVariants(wf="timeseriesWF",learner="svm",type=c("slide","grow"),gamma=c(0.1,0.4))
#
# ## allowing that one parameter is not considered for variants generation
# workflowVariants(wf="userWF",par1=c(0.1,0.4),par2=c(-10,10),as.is="par1")
#
# ## nesting is also allowed!
# workflowVariants(wf="userWF",
# xpto=list(par1=c(0.1,0.4),d="k",par3=c(1,3)),
# par2=c(-10,10),
# as.is="par1")
# ## End(Not run)
Run the code above in your browser using DataLab