Learn R Programming

mlbench (version 2.1-5)

LetterRecognition: Letter Image Recognition Data

Description

The objective is to identify each of a large number of black-and-white rectangular pixel displays as one of the 26 capital letters in the English alphabet. The character images were based on 20 different fonts and each letter within these 20 fonts was randomly distorted to produce a file of 20,000 unique stimuli. Each stimulus was converted into 16 primitive numerical attributes (statistical moments and edge counts) which were then scaled to fit into a range of integer values from 0 through 15. We typically train on the first 16000 items and then use the resulting model to predict the letter category for the remaining 4000. See the article cited below for more details.

Usage

data("LetterRecognition", package = "mlbench")

Arguments

Format

A data frame with 20,000 observations on 17 variables, the first is a factor with levels A-Z, the remaining 16 are numeric.

[,1]lettrcapital letter
[,2]x.boxhorizontal position of box
[,3]y.boxvertical position of box
[,4]widthwidth of box
[,5]highheight of box
[,6]onpixtotal number of on pixels
[,7]x.barmean x of on pixels in box
[,8]y.barmean y of on pixels in box
[,9]x2barmean x variance
[,10]y2barmean y variance
[,11]xybarmean x y correlation
[,12]x2ybrmean of \(x^2 y\)
[,13]xy2brmean of \(x y^2\)
[,14]x.egemean edge count left to right
[,15]xegvycorrelation of x.ege with y
[,16]y.egemean edge count bottom to top
[,17]yegvxcorrelation of y.ege with x

References

P. W. Frey and D. J. Slate (Machine Learning Vol 6/2 March 91): "Letter Recognition Using Holland-style Adaptive Classifiers".

The research for this article investigated the ability of several variations of Holland-style adaptive classifier systems to learn to correctly guess the letter categories associated with vectors of 16 integer attributes extracted from raster scan images of the letters. The best accuracy obtained was a little over 80%. It would be interesting to see how well other methods do with the same data.

Blake, C.L. & Merz, C.J. (1998). UCI Repository of Machine Learning Databases. Irvine, CA: University of California, Irvine, Department of Information and Computer Science. Formerly available from http://www.ics.uci.edu/~mlearn/MLRepository.html.

Examples

Run this code
data("LetterRecognition", package = "mlbench")
summary(LetterRecognition)

Run the code above in your browser using DataLab