A machine-learning model showed promising results, but city officials and their engineering contractor abandoned it.