Neural networks facilitate optimization in the search for new materials