Thanks but why did you train the network again after cloning and modifying parameters? I just need to clone, modify, reassign and predict. My aim is to see how modifying some of the weights alters the accuracy of the network? Or am I missing something in your snippet? Or can you say your answer is the the part of snippet in which random data generation and training parts are excluded?