Custom Neural Network generator