Optimizing Neural Networks in the Equivalent Class Space