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

Method _get_classification_model

predict.py:59–62  ·  view source on GitHub ↗
(model_name, dataset, conf)

Source from the content-addressed store, hash-verified

57
58 @staticmethod
59 def _get_classification_model(model_name, dataset, conf):
60 model = globals()[model_name](dataset, conf)
61 model = model.cuda(conf.device) if conf.device.startswith("cuda") else model
62 return model
63
64 @staticmethod
65 def _load_checkpoint(file_name, model, use_cuda):

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected