Engineering flexible machine learning systems by traversing functionally invariant paths | Synapse