Converts a class vector (integers) to binary class matrix.
to_categorical(y, num_classes = NULL, dtype = "float32")
Class vector to be converted into a matrix (integers from 0 to num_classes).
Total number of classes.
The data type expected by the input, as a string
A binary matrix representation of the input.
E.g. for use with