Encode multifple hidden layers as hyperparameters.