Neural networks and 'ghost' electrons accurately reconstruct behavior of quantum systems