Tokenizes categorical features into a dense embedding.
For an input of shape (batch, n_features) the output shape is (batch, n_features, d_token).
Arguments
- cardinalities
(
integer())
The number of categories for each feature.- d_token
(
integer(1))
The dimension of the embedding.- bias
(
logical(1))
Whether to use a bias.- initialization
(
character(1))
The initialization method for the embedding weights. Possible values are"uniform"and"normal".