Hey Everyone, I’m returning to pytorch since a while, and i’m tackling a multi class classification problem for categorical data.
I have 18 categorical labels(names of countries) and I’m trying to convert them to one hot labels?
I’m now Using the sklearn class (LabelEncoder) but this method is just converting categories to numbers, and i want to one hot encode them?
Any method to do this in pytorch?
Please note that i have Train and val in two separate csv files.
Thank you so much for your help