Learn R Programming

OneR

This R package implements the One Rule (OneR) Machine Learning classification algorithm with enhancements for sophisticated handling of numeric data and missing values together with extensive diagnostic functions. It is useful as a baseline for machine learning models and the rules are often helpful heuristics.

Documentation

This video gives a step-by-step introduction: Quick Start Guide for the OneR package

You can find the vignette and full documentation in the package and on CRAN: OneR: One Rule Machine Learning Classification Algorithm with Enhancements

Installation

Install the latest version from GitHub:

install.packages("devtools")
library(devtools)
install_github("vonjd/OneR")

Install from CRAN:

install.packages("OneR")

Contact

I would love to hear about your experiences with the OneR package. Please drop me a note - you can reach me at my university account: Holger K. von Jouanne-Diedrich

Copy Link

Version

Install

install.packages('OneR')

Monthly Downloads

791

Version

2.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Last Published

May 5th, 2017

Functions in OneR (2.2)

predict.OneR

Predict method for OneR models
print.OneR

Print OneR models
optbin

Optimal Binning function
plot.OneR

Plot Diagnostics for an OneR object
breastcancer

Breast Cancer Wisconsin Original Data Set
eval_model

Classification Evaluation function
is.OneR

Test OneR model objects
maxlevels

Remove factors with too many levels
OneR

One Rule function
bin

Binning function
summary.OneR

Summarize OneR models