sae.setLayerCalculator(lcTanh(sae, null));
return sae;
}
public static void populateBiasLayers(LayerCalculatorImpl lc, NeuralNetwork nn) {
nn.getLayers().stream().filter(l -> Util.isBias(l)).forEach(l -> lc.addConnectionCalculator(l, new ConstantConnectionCalculator()));
}