Learning a Stable Dynamic System with a Lyapunov Energy Function for Demonstratives Using Neural Networks