DoubleVector internalInstance = new DenseDoubleVector(inputInstance.getDimension() + 1);
internalInstance.set(0, 1);
for (int i = 0; i < inputInstance.getDimension(); ++i) {
internalInstance.set(i + 1, inputInstance.get(i));
}
DoubleFunction squashingFunction = model
.getSquashingFunction(inputLayer);
DoubleMatrix weightMatrix = null;
if (inputLayer == 0) {
weightMatrix = this.getEncodeWeightMatrix();
} else {