title: How to use IP address as a feature in a neural network
body: <p>Using <a href="https://keras.io/" rel="noreferrer">Keras</a>, I want to build an LSTM neural net to analyze user behavior in my system. One of my features is a string containing the user IP address, that could be IPv4 or IPv6.</p>
  
  <p>As I see it I need to embed the address so it can be use as a feature.
  In <a href="https://keras.io/layers/embeddings/" rel="noreferrer">Keras documentation</a> there is no clear explanation how to do such a thing.</p>
  
  <p>What would be a good place to start?</p>