MCPcopy Create free account
hub / github.com/modelscope/modelscope / evaluate

Method evaluate

modelscope/trainers/base.py:82–90  ·  view source on GitHub ↗

Evaluation process Evaluation process should be implemented for specific task or model, related parameters have been initialized in ``BaseTrainer.__init__`` and should be used in this function

(self, checkpoint_path: str, *args,
                 **kwargs)

Source from the content-addressed store, hash-verified

80
81 @abstractmethod
82 def evaluate(self, checkpoint_path: str, *args,
83 **kwargs) -> Dict[str, float]:
84 """ Evaluation process
85
86 Evaluation process should be implemented for specific task or
87 model, related parameters have been initialized in
88 ``BaseTrainer.__init__`` and should be used in this function
89 """
90 pass
91
92
93@TRAINERS.register_module(module_name='dummy')

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected