db63fc682084097bb345e2cbbbc94f73042e8ec6,examples/run_dien.py,,get_xy_fd,#Any#Any#,8
Before Change
//x += [feature_dict["neg_hist_"+feat] for feat in behavior_feature_list]
fix_feature_names = get_fixlen_feature_names(feature_columns)
varlen_feature_names = get_varlen_feature_names(feature_columns)
x = [feature_dict[name] for name in fix_feature_names] + [feature_dict[name] for name in varlen_feature_names]
x += [behavior_length]
y = [1, 0, 1]
After Change
if use_neg:
feature_dict["neg_hist_item"] = np.array([[1, 2, 3, 0], [1, 2, 3, 0], [1, 2, 0, 0]])
feature_dict["neg_hist_item_gender"] = np.array([[1, 1, 2, 0], [2, 1, 1, 0], [2, 1, 0, 0]])
feature_columns += [VarLenSparseFeat("neg_hist_item",3+1, maxlen=4, embedding_name="item"),
VarLenSparseFeat("neg_hist_item_gender",3+1, maxlen=4, embedding_name="item_gender")]
x = {name:feature_dict[name] for name in get_feature_names(feature_columns)}
x["seq_length"] = behavior_length
y = [1, 0, 1]
return x, y, feature_columns, behavior_feature_list
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: shenweichen/DeepCTR
Commit Name: db63fc682084097bb345e2cbbbc94f73042e8ec6
Time: 2019-10-03
Author: wcshen1994@163.com
File Name: examples/run_dien.py
Class Name:
Method Name: get_xy_fd
Project Name: shenweichen/DeepCTR
Commit Name: db63fc682084097bb345e2cbbbc94f73042e8ec6
Time: 2019-10-03
Author: wcshen1994@163.com
File Name: examples/run_din.py
Class Name:
Method Name: get_xy_fd
Project Name: shenweichen/DeepCTR
Commit Name: db63fc682084097bb345e2cbbbc94f73042e8ec6
Time: 2019-10-03
Author: wcshen1994@163.com
File Name: examples/run_dien.py
Class Name:
Method Name: get_xy_fd
Project Name: shenweichen/DeepCTR
Commit Name: db63fc682084097bb345e2cbbbc94f73042e8ec6
Time: 2019-10-03
Author: wcshen1994@163.com
File Name: tests/models/DSIN_test.py
Class Name:
Method Name: get_xy_fd