Thank you very much for your reply, but when I replace these commands and execute this line of code,
We rescale features to [0, 1]
min_max_scaler = MinMaxScaler ()
train = min_max_scaler.fit_transform (train)
test = min_max_scaler.transform (test)
I get this error,
File “C: \ Python \ Anaconda3 \ lib \ site-packages \ sklearn \ utils \ validation.py”, line 43, in _assert_all_finite
“or a value too large for% r.” % X.dtype)
ValueError: Input contains NaN, infinity or a value too large for dtype (‘float64’).
Which goes back to line 43, which contains this order,
kdd [‘class’] = kdd [‘class’]. replace (attack_map)
unique_classes = kdd [‘class’]. unique ()