thanks for your response but I can’t solve this problem that said in the question.
(But when I run this line of code y_test = pd.get_dummies(y_test), instead of being categorized into 5 classes, it shows me the same 22 features, while I did the same thing train data (target = pd.get_dummies(target) and correct result), it using for the test data.)
I replaced this line kdd_t[‘class’] = kdd[‘class’].replace(attack_map) but  you said this work is incrocet.