deeplearning
deeplearning copied to clipboard
DIN
请问din模型中的din.data 跟 din_raw.data 是怎么用的呢 用户行为序列怎么解析的不太清楚 麻烦能讲解一下吗
din_raw.data 是原始数据,转成tfrecord后就是din.data. 模型需要tfrecord格式的输入。
这个也是DCN的数据源?????????????????居然穿越过来了
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吗