Modified createNeuralNetwork method of NNManager