Introduction - If you have any usage issues, please Google them yourself
Example 1 uses the momentum gradient descent algorithm to train the BP network.
Example 2 uses the Bayesian regularization algorithm to improve the generalization ability of BP network. In this example, we use two training methods, the LM optimization algorithm (trainlm) and the Bayesian regularization algorithm (trainbr), to train the BP network to fit a sine sample with white noise data.