1438bf0debd7cdf3c70eed492f93bdf98cfb48b3,deepctr/input_embedding.py,,create_varlenfeat_dict,#Any#Any#,35
Before Change
def create_varlenfeat_dict(feature_dim_dict, mask_zero=True):
sequence_dim_dict = feature_dim_dict.get("sequence", [])
sequence_input_dict = {feat.name: Input(shape=(feat.maxlen,), name="seq_" + str(
i) + "-" + feat.name) for i, feat in enumerate(sequence_dim_dict)}
sequence_pooling_dict = {feat.name: feat.combiner
for i, feat in enumerate(sequence_dim_dict)}
if mask_zero:
sequence_len_dict, sequence_max_len_dict = None, None
After Change
def create_varlenfeat_dict(feature_dim_dict, mask_zero=True):
sequence_dim_dict = feature_dim_dict.get("sequence", [])
sequence_input_dict = OrderedDict()
for i, feat in enumerate(sequence_dim_dict):
sequence_input_dict[feat.name] = Input(shape=(feat.maxlen,), name="seq_" + str(
i) + "-" + feat.name)
sequence_pooling_dict = {feat.name: feat.combiner
for i, feat in enumerate(sequence_dim_dict)}
if mask_zero:
sequence_len_dict, sequence_max_len_dict = None, None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: shenweichen/DeepCTR
Commit Name: 1438bf0debd7cdf3c70eed492f93bdf98cfb48b3
Time: 2019-03-28
Author: wcshen1994@163.com
File Name: deepctr/input_embedding.py
Class Name:
Method Name: create_varlenfeat_dict
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: 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