MCPcopy
hub / github.com/shenweichen/DeepCTR-Torch / test_PNN

Function test_PNN

tests/models/PNN_test.py:13–20  ·  view source on GitHub ↗
(use_inner, use_outter, kernel_type, sparse_feature_num)

Source from the content-addressed store, hash-verified

11 ]
12)
13def test_PNN(use_inner, use_outter, kernel_type, sparse_feature_num):
14 model_name = "PNN"
15 sample_size = SAMPLE_SIZE
16 x, y, feature_columns = get_test_data(sample_size, sparse_feature_num=sparse_feature_num,
17 dense_feature_num=sparse_feature_num)
18 model = PNN(feature_columns, dnn_hidden_units=[32, 32], dnn_dropout=0.5, use_inner=use_inner,
19 use_outter=use_outter, kernel_type=kernel_type, device=get_device())
20 check_model(model, model_name, x, y)
21
22
23if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

PNNClass · 0.90
get_test_dataFunction · 0.85
check_modelFunction · 0.85
get_deviceFunction · 0.50

Tested by

no test coverage detected