MCPcopy
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / get_classification_model

Function get_classification_model

eval.py:48–51  ·  view source on GitHub ↗
(model_name, dataset, conf)

Source from the content-addressed store, hash-verified

46
47
48def get_classification_model(model_name, dataset, conf):
49 model = globals()[model_name](dataset, conf)
50 model = model.cuda(conf.device) if conf.device.startswith("cuda") else model
51 return model
52
53
54def load_checkpoint(file_name, conf, model, optimizer):

Callers 1

evalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected