Keras - One-Hot Encoding
Introduction In this tutorial, we want to one-hot encode a NumPy array that contains categorical values. In order to do this, we use the to_categorical() function of Keras. Import Libraries First, we import the following python modules: import numpy as np from keras.utils import to_categorical Define Data...