d97e9cd0c30980647f31c1003d6367e6a41c7124,tests/models/MLR_test.py,,test_MLR,#,51
Before Change
model_name = "MLR"
sample_size = 64
feature_dim_dict = {"sparse": {"sparse_1": 2, "sparse_2": 5,
"sparse_3": 10}, "dense": ["dense_1", "dense_2", "dense_3"]}
sparse_input = [np.random.randint(0, dim, sample_size)
for dim in feature_dim_dict["sparse"].values()]
dense_input = [np.random.random(sample_size)
After Change
model_name = "MLR"
sample_size = 64
feature_dim_dict = {"sparse": [SingleFeat("sparse_1",2),SingleFeat("sparse_2",5),SingleFeat("sparse_3",10)] ,
"dense": [SingleFeat("dense_1",0),SingleFeat("dense_2",0),SingleFeat("dense_3",0)]}
sparse_input = [np.random.randint(0, dim, sample_size)
for feat,dim in feature_dim_dict["sparse"]]
dense_input = [np.random.random(sample_size)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
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: examples/run_din.py
Class Name:
Method Name: get_xy_fd