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

Function test_DIN

tests/models/DIN_test.py:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def test_DIN():
45 model_name = "DIN"
46
47 x, y, feature_columns, behavior_feature_list = get_xy_fd()
48 model = DIN(feature_columns, behavior_feature_list, dnn_dropout=0.5, device=get_device())
49
50 check_model(model, model_name, x, y) # only have 3 train data so we set validation ratio at 0
51
52
53if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

DINClass · 0.90
check_modelFunction · 0.85
get_xy_fdFunction · 0.70
get_deviceFunction · 0.50

Tested by

no test coverage detected