Neural Network Construction with Functional Adaptation