What is a feature cross?
A synthetic feature formed by "crossing" categorical or bucketed features.
feature cross explained in plain English
A synthetic feature formed by "crossing" categorical or bucketed features. For example, consider a "mood forecasting" model that represents temperature in one of the following four buckets: - `freezing` - `chilly` - `temperate` - `warm` And represents wind speed in one of the following three buckets: - `still` - `light` - `windy` Without feature crosses, the linear model trains independently on each of the preceding seven various buckets. So, the model trains on, for example,`freezing` independently of the training on, for example,`windy`. Alternatively, you could create a feature cross of temperature and wind speed. This synthetic feature would have the following 12 possible values: - `freezing-still` - `freezing-light` - `freezing-windy` - `chilly-still` - `chilly-light` - `chilly-windy` - `temperate-still` - `temperate-light` - `temperate-windy` - `warm-still` - `warm-light` - `warm-windy` Thanks to feature crosses, the model can learn mood differences between a`freezing-windy` day and a`freezing-still` day. If you create a synthetic feature from two features that each have a lot of different buckets, the resulting feature cross will have a huge number of possible combinations. For example, if one feature has 1,000 buckets and the other feature has 2,000 buckets, the resulting feature cross has 2,000,000 buckets. Formally, a cross is a Cartesian product. Feature crosses are mostly used with linear models and are rarely used with neural networks. See Categorical data: Feature crosses in Machine Learning Crash Course for more information.
Example
Practitioners refer to feature cross when building, training, or evaluating machine learning systems. It appears in research papers, product documentation, and technical discussions about AI capabilities and limitations.
People also read
- activation function
A function that enables neural networks to learn nonlinear (complex) relationships between features and the label.
- Backpropagation
The process that tells a neural network which internal settings caused an error and how to adjust them, working backwards through layers.
- batch
The set of examples used in one training iteration.
- batch normalization
Normalizing the input or output of the activation functions in a hidden layer.
- batch size
The number of examples in a batch.
- Bayesian neural network
A probabilistic neural network that accounts for uncertainty in weights and outputs.
- co-adaptation
An undesirable behavior in which neurons predict patterns in training data by relying almost exclusively on outputs of specific other neurons instead of relying on the network's behavior as a whole.
- convergence
A state reached when loss values change very little or not at all with each iteration.
- deep model
A neural network containing more than one hidden layer.
- depth
The sum of the following in a neural network: - the number of hidden layers - the number of output layers, which is typically 1 - the number of any embedding layers For example, a neural network with five hidden layers and one output layer has a depth of 6.