Using regularization to derive optimallyconnected architecturesD