| tune.doc | R Documentation |
This function is never called: it holds the canonical documentation of the four arguments
that close the signature of every classification and regression method of the package,
shared through @inheritParams rather than repeated in some thirty places. A method
whose own @param says something more specific keeps it.
tune.doc(tune, methodparameters, graph, seed, nfolds)
tune |
If true, the function returns parameters instead of a classification model. |
methodparameters |
Pre-tuned parameters, as returned by the same method called with
|
graph |
Whether the method draws the graphic that goes with its tuning (the cross-validation curve, typically). Methods that have no such graphic accept the argument and ignore it. |
seed |
A specified seed for random number generation, so that two runs on the same data give the same model. Every learning method accepts it, so that it can be set the same way whatever the method; the deterministic ones simply have nothing to draw and give the same model with or without it. |
nfolds |
The number of folds of the cross-validation a method runs to choose its hyperparameters. Only used when there is something to choose, i.e. when one of them is given as a vector. Lower it to fit faster, at the cost of a noisier choice. |
Every learning method of the package ends on the same four arguments, in the same order:
tune, methodparameters, graph, seed. That is what lets
performance take any of them without knowing which, and what lets one method
be replaced by another in a script without rewriting the call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.