Learning inverse dynamics models in O(n) time with LSTM networks | Synapse