#One hot encoded labels back to normal

2 messages · Page 1 of 1 (latest)

winged goblet
#
index_to_label = {index:label for index, label in enumerate(labels)}
label_to_index = {label:index for index, label in enumerate(labels)}
fickle void
#

Can you provide an example of the data frame for this? The solution position above works if you are mapping your one hot vector to a number index, but if it is not, then we have to do something different