MCPcopy Create free account
hub / github.com/LeapLabTHU/DAT / build_model

Function build_model

models/build.py:13–21  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

11from .dat import DAT
12
13def build_model(config):
14
15 model_type = config.MODEL.TYPE
16 if model_type == 'dat':
17 model = DAT(**config.MODEL.DAT)
18 else:
19 raise NotImplementedError(f"Unkown model: {model_type}")
20
21 return model

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 1

DATClass · 0.85

Tested by

no test coverage detected