'Returns the reconstructed input.'

def reconstruct(self, feed):

    feed = Feed.from_any(feed)
    x_prime = np.empty(feed.x.shape)
    offset = 0
    for x_batch in feed.batches():
        x_prime_batch = np.array(self._reconstruct_batch(x_batch))
        batch_size = x_prime_batch.shape[0]
        x_prime[offset:(offset + batch_size), ...] = x_prime_batch
        offset += batch_size
    return x_prime
