Simple and efficient algorithms for training machine learning potentials to force data