added a method for getting model accuracy value