MCPcopy
hub / github.com/PaddlePaddle/ERNIE / eval

Method eval

data_processor/process.py:143–145  ·  view source on GitHub ↗

Enable evaluation mode (doesn't produce labels).

(self)

Source from the content-addressed store, hash-verified

141 self.is_training = True
142
143 def eval(self) -> None:
144 """Enable evaluation mode (doesn't produce labels)."""
145 self.is_training = False
146
147 def process(self, messages: List[Dict[str, Any]]) -> Dict[str, Union[np.ndarray, List[np.ndarray], None]]:
148 """

Callers 4

_init_mm_modelMethod · 0.45
__init__Method · 0.45
prediction_stepMethod · 0.45
prediction_stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected