MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / eval

Method eval

codegeex/mindspore/src/metrics.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.tokens_count += 1
93
94 def eval(self):
95 if not self.is_last_stage == 0:
96 return 0
97 val_loss = sum(self.metric) / (self.tokens_count * self.data_length)
98 return val_loss

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected