Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am trying to build a binary classifier using a MLP with the Keras package in R.
My question is, why does the package require the labels to be a one-hot vector? For example, the value 1 will be the vector [1,0] and the value 0 will be the vector [0,1]. This essentially makes the labels a 2D array.