Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Weka_control

Control Weka Options


Description

Set control options for Weka learners.

Usage

Weka_control(...)

Arguments

...

named arguments of control options, see the details and examples.

Details

The available options for a Weka learner, foo() say, can be queried by WOW(foo) and then conveniently set by Weka_control(). See below for an example.

One can use lists for options taking multiple arguments, see the documentation for SMO for an example.

Value

A list of class Weka_control which can be coerced to character for passing it to Weka.

See Also

Examples

## Query J4.8 options:
WOW("J48")
## Learn J4.8 tree on iris data with default settings:
J48(Species ~ ., data = iris)
## Learn J4.8 tree with reduced error pruning (-R) and 
## minimum number of instances set to 5 (-M 5):
J48(Species ~ ., data = iris, control = Weka_control(R = TRUE, M = 5))

RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.