List<DoubleVector> outputCache = getOutputInternal(instanceWithBias);
// return the output of the last layer
DoubleVector result = outputCache.get(outputCache.size() - 1);
// remove bias
return result.sliceUnsafe(1, result.getDimension() - 1);
}
/**
* Calculate output internally, the intermediate output of each layer will be
* stored.