paramgroup is  a list of dict of  hyper parameter including the weights of layer for each group network is divided into .By default network is divided into two groups
input to penultimate layer
penultimate layer to last layer …