reconstruct neural network