Learn R Programming

OneR (version 2.2)

summary.OneR: Summarize OneR models

Description

summary method for class OneR.

Usage

# S3 method for OneR
summary(object, ...)

Arguments

object
object of class "OneR".
...
further arguments passed to or from other methods.

Details

Prints the rules of the OneR model, the accuracy, a contingency table of the feature attribute and the target and performs a chi-squared test on this table.

In the contingency table the maximum values in each column are highlighted by adding a '*', thereby representing the rules of the OneR model.

References

https://github.com/vonjd/OneR

See Also

OneR

Examples

Run this code
model <- OneR(iris)
summary(model)

Run the code above in your browser using DataLab