Network-Intrusion-Detection icon indicating copy to clipboard operation
Network-Intrusion-Detection copied to clipboard

ValueError: could not convert string to float: 'dur' in

Open liheyong opened this issue 3 years ago • 1 comments

dear author

when i run this code arise an error: ValueError: could not convert string to float: 'dur' in scaler = Normalizer().fit(X) Is there any solution??

thanks!!

liheyong avatar Aug 17 '21 14:08 liheyong

Check your input data, it must be 'float', instead of 'string'. it may be solved by one of the methods:

  • Modify the argument in the 'iloc' method.
  • Remove the headers of your csv file.

PrivateALun avatar Dec 16 '21 07:12 PrivateALun