Viewing a single comment thread. View all comments

Thijs-vW OP t1_it82bgp wrote

I looked in to the embedding layer in Keras, but I was not impressed. They are merely fancy lookup tables. That is nice when you want to encode sentences or the like, but I have a variable with merely 51 categories. In this case, a dense layer to transform the one-hot encoded variable would achieve the same, if I am not mistaken.

−6

TheCloudTamer t1_itau2sm wrote

Embedding are dense layers, just for one-hot vector input.

3

Thijs-vW OP t1_itbb6xe wrote

Thanks for the clarification. So if I one-hot encode my categorical variable and feed it to a dense layer, I would achieve the same as with an embedding layer?

3