Training Data Selection for Optimal Generalization in Trigonometric Polynomial Networks