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

Function test_MLRs

tests/models/MLR_test.py:18–31  ·  view source on GitHub ↗
(region_sparse, region_dense, base_sparse, base_dense, bias_sparse, bias_dense)

Source from the content-addressed store, hash-verified

16
17)
18def test_MLRs(region_sparse, region_dense, base_sparse, base_dense, bias_sparse, bias_dense):
19 model_name = "MLRs"
20 region_x, y, region_feature_columns = get_test_data(
21 SAMPLE_SIZE, region_sparse, region_dense, prefix='region')
22 base_x, y, base_feature_columns = get_test_data(
23 SAMPLE_SIZE, region_sparse, region_dense, prefix='base')
24 bias_x, y, bias_feature_columns = get_test_data(
25 SAMPLE_SIZE, region_sparse, region_dense, prefix='bias')
26
27 model = MLR(region_feature_columns, base_feature_columns,
28 bias_feature_columns=bias_feature_columns, device=get_device())
29 model.compile('adam', 'binary_crossentropy',
30 metrics=['binary_crossentropy'])
31 print(model_name + " test pass!")
32
33
34def test_MLR():

Callers

nothing calls this directly

Calls 4

MLRClass · 0.90
get_test_dataFunction · 0.85
compileMethod · 0.80
get_deviceFunction · 0.50

Tested by

no test coverage detected