Select best connection in a neural network

Hi there, How can I select the best performing connection in a neural network based on a priority assigned to each connection between every layers?