MCPcopy
hub / github.com/THUDM/CogDL / eval

Method eval

examples/dgraph/utils/evaluator.py:40–46  ·  view source on GitHub ↗
(self, y_true, y_pred)

Source from the content-addressed store, hash-verified

38 return y_true, y_pred
39
40 def eval(self, y_true, y_pred):
41 if self.eval_metric == 'auc':
42 y_true, y_pred = self._check_input(y_true, y_pred)
43 return self._eval_rocauc(y_true, y_pred)
44 if self.eval_metric == 'acc':
45 y_true, y_pred = self._check_input(y_true, y_pred)
46 return self._eval_acc(y_true, y_pred)
47
48
49 def _eval_rocauc(self, y_true, y_pred):

Callers 15

testFunction · 0.45
_preprocessingMethod · 0.45
preprocessingMethod · 0.45
evalueteFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

_check_inputMethod · 0.95
_eval_rocaucMethod · 0.95
_eval_accMethod · 0.95

Tested by

no test coverage detected