Program performance prediction method, neural network training method and application