Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy.
- y: class vector to be converted into a matrix
- nb_classes: total number of classes
A binary matrix representation of the input.
Converts a kernel matrix (Numpy array) from Theano format to TensorFlow format (or reciprocally, since the transformation is its own inverse).