Immunocomputing-Based Optimization For Shallow And Deep Neural Networks