utils.to_categorical should output a matrix even if input is single element · Issue #8519 · keras-team/keras
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channe...