Posts tagged with "one hot"

Fast One Hot Encoding using Numpy (No For Loops)

July 11, 2021

In a lot of artificial intelligence applications, specially in supervised learning classification problems, where the labels for each of the datapoints are available, we often have a one-dimensional array containing the classes of each of the datapoints. Depending upon the machine learning algorithm we are going to apply to our dataset for classification, we might [...]