I have a function to convert Ip address to integer value:
def convertIpToInt(ip):
return sum([int(ipField) << 8*index for index, ipField in enumerate(reversed(ip.split('.')))])
convertIpToInt('149.170.10.1') -> 2510948865
which works fine and gives an integer value, but how to use these values in the classification model? Should I Scale these values, or what could be other options to handle this type of data?