Machine learning evaluation metrics, implemented in Python, R, Haskell, and MATLAB / Octave