def get_connections_viewer(imgs, W1, W2):
 W2 = sort_layer2(W2)
 N1 = W1.shape[1]
 N = W2.shape[1]
 N = min(N, 100)
 count = get_elements_count(N, N1, W2)
 pv = create_connect_viewer(N, N1, imgs, count, W2)
 return pv

def get_connections_viewer ( imgs , W1 , W2 ) : W2 = sort_layer2 ( W2 ) N1 = W1 . shape [ 1 ] N = W2 . shape [ 1 ] N = min ( N , 100 ) count = get_elements_count ( N , N1 , W2 ) pv = create_connect_viewer ( N , N1 , imgs , count , W2 ) return pv
show connections between 2 hidden layers .