MCPcopy Create free account
hub / github.com/twitter/the-algorithm-ml / reset

Method reset

metrics/rce.py:183–189  ·  view source on GitHub ↗

Reset the metric to its initial state.

(self)

Source from the content-addressed store, hash-verified

181 return (1.0 - (pred_ce / baseline_ce)) * 100
182
183 def reset(self):
184 """
185 Reset the metric to its initial state.
186 """
187 super().reset()
188 self.mean_label.reset()
189 self.binary_cross_entropy.reset()
190
191 def forward(self, *args, **kwargs):
192 """

Callers 7

forwardMethod · 0.45
resetMethod · 0.45
_run_evaluationFunction · 0.45
test_aucFunction · 0.45
test_pos_rankFunction · 0.45
test_reciprocal_rankFunction · 0.45
test_hit_kFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_aucFunction · 0.36
test_pos_rankFunction · 0.36
test_reciprocal_rankFunction · 0.36
test_hit_kFunction · 0.36