Learning from Survey Propagation: a Neural Network for MAX-E-$3$-SAT