Implement the computation of Accuracy, Precision, Recall, and F1-score in Python.
To run the test issue the following command on the command line:
python -m unittest test.TestEvalMetrics
The tests will (unsurprisingly) fail:
...
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (failures=1)
Complete the TODO parts in metrics.py.
If you complete the code correctly, it should pass the test with an output like:
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
(See metrics_solution.py for the solution.)