Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIN #13

Open
JasonMarz1 opened this issue Nov 6, 2019 · 3 comments
Open

DIN #13

JasonMarz1 opened this issue Nov 6, 2019 · 3 comments

Comments

@JasonMarz1
Copy link

请问din模型中的din.data 跟 din_raw.data 是怎么用的呢 用户行为序列怎么解析的不太清楚 麻烦能讲解一下吗

@yangxudong
Copy link
Owner

din_raw.data 是原始数据,转成tfrecord后就是din.data. 模型需要tfrecord格式的输入。

@shuDaoNan9
Copy link

这个也是DCN的数据源?????????????????居然穿越过来了

@JasonMarz1
Copy link
Author

seq_emb = tf.nn.embedding_lookup(embeddings, seq_ids) # shape(batch_size, max_seq_len, embedding_size)
tid_emb = tf.nn.embedding_lookup(embeddings, tid) # shape(batch_size, embedding_size)
max_seq_len = tf.shape(seq_ids)[1] # padded_dim
u_emb = tf.reshape(seq_emb, shape=[-1, embedding_size])
a_emb = tf.reshape(tf.tile(tid_emb, [1, max_seq_len]), shape=[-1, embedding_size])
你好 请问下 这块的操作是吧整个batch拍扁做attention吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants