d97e9cd0c30980647f31c1003d6367e6a41c7124,examples/run_din.py,,get_xy_fd,#,5

Before Change



def get_xy_fd():

    feature_dim_dict = {"sparse": {"user_age": 4, "user_gender": 2,
                                   "item_id": 4, "item_gender": 2}, "dense": []}  // raw feature:single value feature

    // history behavior feature:multi-value value feature
    behavior_feature_list = ["item_id", "item_gender"]

After Change



def get_xy_fd():

    feature_dim_dict = {"sparse": [SingleFeat("user_age",4),SingleFeat("user_gender",2),SingleFeat("item_id",4),SingleFeat("item_gender",4)]}// raw feature:single value feature

    // history behavior feature:multi-value value feature
    behavior_feature_list = ["item_id", "item_gender"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: examples/run_din.py
Class Name:
Method Name: get_xy_fd


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: tests/models/MLR_test.py
Class Name:
Method Name: test_MLR


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: tests/models/DCN_test.py
Class Name:
Method Name: test_DCN_invalid


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: tests/models/DIN_test.py
Class Name:
Method Name: get_xy_fd