Skip to content

Commit

Permalink
Update CCPM_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
浅梦 committed Apr 21, 2019
1 parent 33faa4b commit 7d5bfd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/models/CCPM_test.py
Expand Up @@ -16,7 +16,7 @@ def test_CCPM(sparse_feature_num, dense_feature_num):
x, y, feature_dim_dict = get_test_data(
sample_size, sparse_feature_num, dense_feature_num)

model = CCPM(feature_dim_dict, filter_width=(3, 2), feature_maps=(2, 1), hidden_size=[32, ], keep_prob=0.5, )
model = CCPM(feature_dim_dict, conv_kernel_width=(3, 2), conv_filters=(2, 1), hidden_size=[32, ], keep_prob=0.5, )
check_model(model, model_name, x, y)


Expand All @@ -32,10 +32,9 @@ def test_CCPM_without_seq(sparse_feature_num, dense_feature_num):
x, y, feature_dim_dict = get_test_data(
sample_size, sparse_feature_num, dense_feature_num, sequence_feature=())

model = CCPM(feature_dim_dict, filter_width=(3, 2), feature_maps=(2, 1), hidden_size=[32, ], keep_prob=0.5, )
model = CCPM(feature_dim_dict, conv_kernel_width=(3, 2), conv_filters=(2, 1), hidden_size=[32, ], keep_prob=0.5, )
check_model(model, model_name, x, y)


if __name__ == "__main__":
# CCPM(2, 2)
pass

0 comments on commit 7d5bfd9

Please sign in to comment.