Description Usage Arguments Details Value
Train an algorithm while tuning its hyperparameters and return the resulting model.
1 2 3 4 5 6 7 8 9 | tuneAlgorithm(
algorithm = "xgboost",
task,
osw.rate = 10,
maxiter = 10L,
lambda = 10L,
parallel = FALSE,
nthreads = parallel:::detectCores()
)
|
algorithm |
Name of the algorithm to be used (same algorithms as in |
task |
A classification task as returned by |
maxiter |
Maximum number of iterations in the CMA-ES optimization of hyperparameters. |
lambda |
Number of offspring in each iteration of the CMA-ES optimization of hyperparameters. |
parallel |
Whether to use parallelization in the tuning of hyperparameters (default: |
nthreads |
Number of threads/workers to use for parallelization. |
The following algorithms can be tuned using CMA-ES optimization: xgboost
, logistic
,
svm
and knn
.
A trained model that can be used to make predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.