Classification data to predict handwritten digits. Obtained using the mlr3oml package.
Binarized version of the original data set. The multi-class target column has been converted to
a two-class nominal target column by re-labeling the majority class as positive ("P"
) and all
others as negative ("N"
). Originally converted by Quan Sun.
Contains 64 features and 5620 observations.
Target column is "binaryclass"
.
Pre-processing
All feature variables
"input1"
, ...,"input64"
(number of on pixels in each block) have been coerced to integers.The target variable has been renamed from
"binaryClass"
to"binaryclass"
.
Examples
data("optdigits", package = "mlr3data")
str(optdigits)
#> 'data.frame': 5620 obs. of 65 variables:
#> $ input1 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input2 : int 1 0 0 0 0 0 0 0 0 0 ...
#> $ input3 : int 6 10 8 0 5 11 1 8 15 3 ...
#> $ input4 : int 15 16 15 3 14 16 11 10 2 13 ...
#> $ input5 : int 12 6 16 11 4 10 13 8 14 13 ...
#> $ input6 : int 1 0 13 16 0 1 11 7 13 2 ...
#> $ input7 : int 0 0 0 0 0 0 7 2 2 0 ...
#> $ input8 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input9 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input10 : int 7 7 1 0 0 4 0 1 0 6 ...
#> $ input11 : int 16 16 11 5 13 16 9 15 16 16 ...
#> $ input12 : int 6 8 9 16 8 10 14 14 15 12 ...
#> $ input13 : int 6 16 11 11 0 15 6 12 12 10 ...
#> $ input14 : int 10 5 16 13 0 8 4 12 13 8 ...
#> $ input15 : int 0 0 1 7 0 0 3 4 8 0 ...
#> $ input16 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input17 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input18 : int 8 11 0 3 3 4 0 7 2 9 ...
#> $ input19 : int 16 16 0 15 14 16 16 15 16 15 ...
#> $ input20 : int 2 0 0 8 4 3 12 12 12 12 ...
#> $ input21 : int 0 6 7 1 0 11 16 5 1 16 ...
#> $ input22 : int 11 14 14 15 0 13 15 0 6 6 ...
#> $ input23 : int 2 3 0 6 0 0 2 0 10 0 ...
#> $ input24 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input25 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input26 : int 5 12 0 11 6 1 5 5 7 10 ...
#> $ input27 : int 16 12 3 16 16 14 16 14 15 16 ...
#> $ input28 : int 3 0 4 16 14 6 10 12 3 16 ...
#> $ input29 : int 0 0 14 16 9 9 4 15 0 13 ...
#> $ input30 : int 5 11 12 16 2 14 12 7 5 0 ...
#> $ input31 : int 7 11 2 10 0 0 6 0 8 0 ...
#> $ input32 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input33 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input34 : int 7 12 1 1 4 0 1 0 5 1 ...
#> $ input35 : int 13 12 16 4 16 0 1 0 12 12 ...
#> $ input36 : int 3 0 16 4 3 0 0 0 0 16 ...
#> $ input37 : int 0 0 16 13 4 12 0 2 0 12 ...
#> $ input38 : int 8 8 16 10 11 10 10 13 8 14 ...
#> $ input39 : int 7 12 10 2 2 0 4 0 8 4 ...
#> $ input40 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input41 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input42 : int 4 7 2 0 0 0 0 0 5 0 ...
#> $ input43 : int 12 15 12 0 14 0 0 0 12 11 ...
#> $ input44 : int 0 1 16 0 3 6 0 0 0 8 ...
#> $ input45 : int 1 0 10 15 0 16 5 4 7 0 ...
#> $ input46 : int 13 13 0 4 4 6 10 12 15 3 ...
#> $ input47 : int 5 11 0 0 11 0 0 0 5 12 ...
#> $ input48 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input49 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input50 : int 0 0 0 0 0 0 0 0 5 0 ...
#> $ input51 : int 14 16 2 0 10 5 0 6 16 13 ...
#> $ input52 : int 9 8 16 3 8 15 8 7 13 11 ...
#> $ input53 : int 15 10 4 16 4 15 15 14 16 8 ...
#> $ input54 : int 9 15 0 0 11 8 3 5 6 13 ...
#> $ input55 : int 0 3 0 0 12 8 0 0 0 12 ...
#> $ input56 : int 0 0 0 0 0 3 0 0 0 0 ...
#> $ input57 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input58 : int 0 0 0 0 0 0 0 0 0 0 ...
#> $ input59 : int 6 10 9 0 4 10 1 4 10 3 ...
#> $ input60 : int 14 16 14 1 12 16 13 13 12 15 ...
#> $ input61 : int 7 15 0 15 14 16 5 8 5 11 ...
#> $ input62 : int 1 3 0 2 7 16 0 0 0 6 ...
#> $ input63 : int 0 0 0 0 0 16 0 0 0 0 ...
#> $ input64 : int 0 0 0 0 0 6 0 0 0 0 ...
#> $ binaryclass: Factor w/ 2 levels "P","N": 2 2 2 2 2 2 2 2 2 2 ...