In the ode-rnn.py file, x_i = prev_observation, x_i should be the observation at the current moment i, and should not be equal to the observation at the previous moment i-1. The ode_sol[:, -1] obtained is the hidden state of time i, and the observation of time i should also be used to update the hidden state.
In the ode-rnn.py file, x_i = prev_observation, x_i should be the observation at the current moment i, and should not be equal to the observation at the previous moment i-1. The ode_sol[:, -1] obtained is the hidden state of time i, and the observation of time i should also be used to update the hidden state.