MCPcopy
hub / github.com/THUDM/CogDL / test_set_best_config

Function test_set_best_config

tests/test_experiments.py:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import os
7
8def test_set_best_config():
9 args = get_default_args(task="node_classification", dataset="citeseer", model="gat")
10 args.model = args.model[0]
11 args.dataset = args.dataset[0]
12 args = set_best_config(args)
13
14 assert args.lr == 0.005
15 assert args.epochs == 1000
16 assert args.weight_decay == 0.001
17
18
19def test_train():

Callers 1

Calls 2

get_default_argsFunction · 0.90
set_best_configFunction · 0.90

Tested by

no test coverage detected