Text this: Resilient distributed machine learning using network reconfiguration