Learn R Programming

OneR (version 2.2)

breastcancer: Breast Cancer Wisconsin Original Data Set

Description

Dataset containing the original Wisconsin breast cancer data.

Usage

data(breastcancer)

Arguments

Format

A data frame with 699 instances and 10 attributes. The variables are as follows:

Details

  1. Clump Thickness: 1 - 10
  2. Uniformity of Cell Size: 1 - 10
  3. Uniformity of Cell Shape: 1 - 10
  4. Marginal Adhesion: 1 - 10
  5. Single Epithelial Cell Size: 1 - 10
  6. Bare Nuclei: 1 - 10
  7. Bland Chromatin: 1 - 10
  8. Normal Nucleoli: 1 - 10
  9. Mitoses: 1 - 10
  10. Class: benign, malignant

References

The data were obtained from the UCI machine learning repository, see https://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+(Original)

Examples

Run this code
data(breastcancer)
data <- optbin(breastcancer, method = "infogain")
model <- OneR(data, verbose = TRUE)
summary(model)
plot(model)
prediction <- predict(model, data)
eval_model(prediction, data)

Run the code above in your browser using DataLab