dcf583f15d08415d4e1972d44c250a5f13f6b10c,examples/run_dien.py,,get_xy_fd,#Any#Any#,8
Before 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", maxlen=4,vocabulary_size=3+1,embedding_dim=8, embedding_name="item",length_name="seq_length"),
VarLenSparseFeat("neg_hist_item_gender", maxlen=4, vocabulary_size=3+1,embedding_dim=4,embedding_name="item_gender",length_name="seq_length")]
x = {name:feature_dict[name] for name in get_feature_names(feature_columns)}
After Change
feature_columns += [
VarLenSparseFeat(SparseFeat("neg_hist_item", vocabulary_size=3 + 1, embedding_dim=8, embedding_name="item"),
maxlen=4, length_name="seq_length"),
VarLenSparseFeat(SparseFeat("neg_hist_item_gender", 2 + 1, embedding_dim=4, embedding_name="item_gender"),
maxlen=4, length_name="seq_length")]
x = {name:feature_dict[name] for name in get_feature_names(feature_columns)}
y = [1, 0, 1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_dien.py
Class Name:
Method Name: get_xy_fd
Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_din.py
Class Name:
Method Name: get_xy_fd
Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_multivalue_movielens_hash.py
Class Name:
Method Name: