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

Function build_args_from_dict

cogdl/utils/utils.py:24–28  ·  view source on GitHub ↗
(dic)

Source from the content-addressed store, hash-verified

22
23
24def build_args_from_dict(dic):
25 args = ArgClass()
26 for key, value in dic.items():
27 args.__setattr__(key, value)
28 return args
29
30
31def update_args_from_dict(args, dic):

Callers 15

test_chameleonFunction · 0.90
test_cornellFunction · 0.90
test_filmFunction · 0.90
test_squirrelFunction · 0.90
test_texasFunction · 0.90
test_wisconsinFunction · 0.90
test_citeseer_geomFunction · 0.90
test_dblp_neFunction · 0.90
test_gcc_kdd_icdmFunction · 0.90
test_rec_datasetFunction · 0.90
test_oagbert_datasetFunction · 0.90

Calls 1

ArgClassClass · 0.85

Tested by 15

test_chameleonFunction · 0.72
test_cornellFunction · 0.72
test_filmFunction · 0.72
test_squirrelFunction · 0.72
test_texasFunction · 0.72
test_wisconsinFunction · 0.72
test_citeseer_geomFunction · 0.72
test_dblp_neFunction · 0.72
test_gcc_kdd_icdmFunction · 0.72
test_rec_datasetFunction · 0.72
test_oagbert_datasetFunction · 0.72