End-to-End Anti-Backdoor Learning on Images and Time Series