to_categorical(y, nb_classes)
to_categorical.
Convert class vector (integers from 0 to nb_classes)
to binary class matrix, for use with categorical_crossentropy.
Arguments:
y: `array`. Class vector to convert.
nb_classes: `int`. Total number of classes.
shuffle(*arrs)
shuffle.
Shuffle(洗牌) given arrays at unison(一致), along first axis.
Arguments:
*arrs: Each array to shuffle at unison.
Returns:
Tuple of shuffled arrays.