Add SPSA-based automatic filter training.