Using SG_DEBUG: https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/metric/LMNN.cpp