Raw File
Tip revision: 583e8e137abae0107d3e0ea9b5549b3d141ba1c5 authored by Piotr Romanski on 11 April 2009, 00:00 UTC
version 0.17
Tip revision: 583e8e1
\title{ OneR algorithm }
  The algorithms find weights of discrete attributes basing on very simple association rules involving only one attribute in condition part.
oneR(formula, data)
  \item{formula}{ a symbolic description of a model }
  \item{data}{ data to process }
  The algorithm uses OneR classifier to find out the attributes' weights. For each attribute it creates a simple rule based only on that attribute and then calculates its error rate.
a data.frame containing the worth of attributes in the first column and their names as row names
\author{ Piotr Romanski }
  weights <- oneR(Class~., HouseVotes84)
  subset <- cutoff.k(weights, 5)
  f <- as.simple.formula(subset, "Class")
back to top