result.setLayerCalculator(lcTanh(result, outputCC));
return result;
}
public static NeuralNetworkImpl maxout(int[] layers, boolean addBias, ConnectionCalculator outputCC) {
NeuralNetworkImpl result = mlp(layers, addBias);
result.setLayerCalculator(lcMaxout(result, outputCC));
result.getConnections().stream().filter(c -> c instanceof FullyConnected).forEach(c -> {
MaxoutWinners.getInstance().addConnections(c);
});
return result;
}