Creates an input for each categorical var, concatenates those, Adds batch-norm to continuous vars etc.
make_embedding(task, embed_size = NULL, embed_dropout = 0)
task | |
---|---|
embed_size |
|
embed_dropout |
|
A list
of input tensors and layer
: the concatenated embeddings.
Guo, Berkhan, 2016 Entity Embeddings of Categorical Variables
#> $inputs #> $inputs[[1]] #> Tensor("chas:0", shape=(None, 1), dtype=int32) #> #> $inputs[[2]] #> Tensor("town:0", shape=(None, 1), dtype=int32) #> #> $inputs$cont #> Tensor("continuous:0", shape=(None, 16), dtype=float32) #> #> #> $layers #> Tensor("concatenate/concat:0", shape=(None, 38), dtype=float32) #>