ML algorithm for key determination: not functional