BP Neural Network algorithm

Source: Internet
Author: User

For the BP neural Network algorithm, because it has not been applied to the project, the occasional time of today's study,

The basic idea of this algorithm is this: continuous iterative optimization of the network weights, so that the mapping between the input and output with the desired mapping relationship, using gradient descent method to update the weights of each layer, the objective function to minimize.

1: Initialize the network weights and neuron thresholds (the simplest method is random initialization);

2: Forward algorithm: This is the classical algorithm of BP Neural Network, the main process is to calculate the input and output of the hidden layer neurons and outputs by the formula layer layer.

NET=X1*W1 + x2*w2 + ... +xn*wn

Tanh= (Ex-e-x)/(Ex+e-x)

Input H=tanh (NET);

Hidlayer Compute Prediction Vector P=H*WI

3: Backward algorithm: The calculation results of the forward algorithm, the use of formulas to reverse the correction weights, the output error in some form through the hidden layer to the input layer by layer-to-level inversion, based on gradient descent method to adjust the weight value,

Not to be continued ~ ~

BP Neural Network algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.