How to Merge Numerical and Embedding Sequential Models to treat categories in RNN

后端 未结 2 1646
后悔当初
后悔当初 2021-02-01 09:50

I would like to build a one layer LSTM model with embeddings for my categorical features. I currently have numerical features and a few categorical features, such as Location, w

2条回答
  •  别跟我提以往
    2021-02-01 10:45

    One other solution I could think of is you could as well concat the numerical(after normalizing) and categorical features together even before you feed it to the lstm.

    During the backprop alow the gradients to flow only in the embedding layer since by default the gradient will flow in both branches.

提交回复
热议问题