e | R Documentation |
Can be used for categorical variables, a more efficient alternative to one-hot encoding
e(dim = 1L, weights = NULL, train = TRUE, lambda = 0, alpha = 1)
dim |
integer, embedding dimension |
weights |
matrix, to use custom embedding matrices |
train |
logical, should the embeddings be trained or not |
lambda |
regularization strength on the embeddings |
alpha |
mix between L1 and L2 regularization |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.