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
                           enumerate(seq_feature_list)}

After Change



def get_input(feature_dim_dict, seq_feature_list, seq_max_len):
    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")

    return sparse_input, dense_input, user_behavior_input, user_behavior_length
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

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: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: deepctr/input_embedding.py
Class Name:
Method Name: create_input_dict


Project Name: instacart/lore
Commit Name: 31ac13263bbc1efc71b2e76893c82e2b8ca6c29e
Time: 2018-04-02
Author: montanalow@users.noreply.github.com
File Name: lore/pipelines/holdout.py
Class Name: Base
Method Name: decode