e7bfb58ab7795bca341cbd0a763f6ec200f6315e,deepctr/models/din.py,,get_input,#Any#Any#Any#,21
Before Change
def get_input(feature_dim_dict, seq_feature_list, seq_max_len):
sparse_input = {feat.name: Input(shape=(1,), name="sparse_" + str(i) + "-" + feat.name) for i, feat in
enumerate(feature_dim_dict["sparse"])}
user_behavior_input = {feat: Input(shape=(seq_max_len,), name="seq_" + str(i) + "-" + feat) for i, feat in
After Change
sparse_input,dense_input = create_singlefeat_dict(feature_dim_dict)
user_behavior_input = OrderedDict()
for i,feat in enumerate(seq_feature_list):
user_behavior_input[feat] = Input(shape=(seq_max_len,), name="seq_" + str(i) + "-" + feat)
user_behavior_length = Input(shape=(1,), name="seq_length")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: shenweichen/DeepCTR
Commit Name: e7bfb58ab7795bca341cbd0a763f6ec200f6315e
Time: 2019-02-17
Author: wcshen1994@163.com
File Name: deepctr/models/din.py
Class Name:
Method Name: get_input
Project Name: keras-team/keras
Commit Name: 365f621b24631a03f995e3b30e1800d327e42fc1
Time: 2017-04-24
Author: joshuarchin@gmail.com
File Name: keras/layers/recurrent.py
Class Name: Recurrent
Method Name: reset_states
Project Name: keras-team/keras
Commit Name: c25fa38deb4efc5445f64af3ec17eae0eb660d2f
Time: 2017-11-09
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: add