Learn R Programming

fdm2id (version 1.0.1)

print.params: Print tuned method parameters

Description

Prints the hyperparameters a method retained, or says that it has none.

Usage

# S3 method for params
print(x, ...)

Arguments

x

The parameters (object of class params-class, obtained by calling a classification method with tune = TRUE).

...

Other parameters.

See Also

params-class, performance

Examples

Run this code
require (datasets)
data (iris)
# A small grid, so that the example stays fast; the defaults search a much larger one.
SVM (iris [, -5], iris [, 5], gamma = 2^(-2:0), cost = 2^(0:2), tune = TRUE)
# A method with nothing to tune says so.
NB (iris [, -5], iris [, 5], tune = TRUE)

Run the code above in your browser using DataLab