MCPcopy
hub / github.com/GauravBh1010tt/DeepLearn / report_score

Function report_score

fake news challenge (FNC-1)/utils/score.py:48–56  ·  view source on GitHub ↗
(actual,predicted,val=False)

Source from the content-addressed store, hash-verified

46
47
48def report_score(actual,predicted,val=False):
49 score,cm = score_submission(actual,predicted)
50 best_score, _ = score_submission(actual,actual)
51
52 if not val:
53 print_confusion_matrix(cm)
54 print("Score: " +str(score) + " out of " + str(best_score) + "\t("+str(score*100/best_score) + "%)")
55
56 return score*100/best_score
57
58
59if __name__ == "__main__":

Callers 12

applyKFoldFunction · 0.90
applyKFoldFunction · 0.90
p3_cnn.pyFile · 0.90
applyKFoldFunction · 0.90
p3_lstm.pyFile · 0.90
ucl_fnc.pyFile · 0.90
cnn_stop.pyFile · 0.90
fnc_kfold.pyFile · 0.90
evaluateFunction · 0.90
train_modelFunction · 0.90
lstm_new.pyFile · 0.85
score.pyFile · 0.85

Calls 2

score_submissionFunction · 0.85
print_confusion_matrixFunction · 0.85

Tested by

no test coverage detected