Time Series Continuous Modeling for Imputation and Forecasting with Implicit Neural Representations