Phase autoencoder for limit-cycle oscillators