d97e9cd0c30980647f31c1003d6367e6a41c7124,deepctr/input_embedding.py,,create_input_dict,#,11
Before Change
def create_input_dict(feature_dim_dict, prefix=""):
sparse_input = {feat: Input(shape=(1,), name=prefix+"sparse_" + str(i) + "-" + feat) for i, feat in
enumerate(feature_dim_dict["sparse"])}
dense_input = {feat: Input(shape=(1,), name=prefix+"dense_" + str(i) + "-" + feat) for i, feat in
enumerate(feature_dim_dict["dense"])}
return sparse_input, dense_input
After Change
def create_input_dict(feature_dim_dict, prefix=""):
sparse_input = OrderedDict()
for i, feat in enumerate(feature_dim_dict["sparse"]):
sparse_input[feat.name] = Input(
shape=(1,), name=prefix+"sparse_" + str(i) + "-" + feat.name)
dense_input = OrderedDict()
for i, feat in enumerate(feature_dim_dict["dense"]):
dense_input[feat] = Input(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
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: 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: 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