Learnable Dynamic Temporal Pooling for Time Series Classification