StringLookup is a Keras preprocessing layer that learns a vocabulary from string-valued categorical data and maps tokens to integer indices before encoding. section 9.3.2
A practical categorical-feature pipeline follows these steps:
- Select a string column from the input dataset, such as Location or Furnishing. section 9.3.2
Real-estate model input
A Kuala Lumpur property model gives each categorical column an input layer, StringLookup layer, and CategoryEncoding layer, while continuous columns use normalization layers. This suits columns with roughly 100 or fewer unique values; larger vocabularies may make one-hot encoding memory-intensive. section 9.3.2
