since I am a newbie in python programming and I want to load the data according to the table of the article but I don’t know how to can do categorical training and testing the NSL_KDD dataset into(‘normal’, ‘dos’, ‘r2l’, ‘probe’, ‘u2r’).
![image](https://discuss.pytorch.org/uploads/default/original/3X/a/f/af4fc0d9cca11117d0af3f9d1f9af397a90daab9.png)
I’ve reviewed a lot of code in GateHub to pre-process the NSL_KDD data set to categorize into five groups(‘normal’, ‘dos’, ‘r2l’, ‘probe’, ‘u2r’), but I still haven’t been able to find the code to do it right.
Can anyone help me? I really need help.