官术网_书友最值得收藏!

Forward and backward passes

In the forward pass, a number of operations are performed to obtain some predictions or scores. In such an operation, a graph is created, connecting all dependent operations in a top-to-bottom fashion. Then the network's error is computed, which is the difference between the predicted output and the actual output.

On the other hand, the backward pass is involved mainly with mathematical operations, such as creating derivatives for all differential operations (that is auto-differentiation methods), top to bottom (for example, measuring the loss function to update the network weights), for all the operations in the graph, and then using them in chain rule.

In this pass, for all layers starting with the output layer back to the input layer, it shows the network layer's output with the correct input (error function). Then it adapts the weights in the current layer to minimize the error function. This is backpropagation's optimization step. By the way, there are two types of auto-differentiation methods:

  1. Reverse mode: Derivation of a single output with respect to all inputs
  2. Forward mode: Derivation of all outputs with respect to one input

The backpropagation algorithm processes the information in such a way that the network decreases the global error during the learning iterations; however, this does not guarantee that the global minimum is reached. The presence of hidden units and the nonlinearity of the output function mean that the behavior of the error is very complex and has many local minimas.

This backpropagation step is typically performed thousands or millions of times, using many training batches, until the model parameters converge to values that minimize the cost function. The training process ends when the error on the validation set begins to increase, because this could mark the beginning of a phase overfitting.

主站蜘蛛池模板: 桃园市| 崇仁县| 龙川县| 莱州市| 元阳县| 宣武区| 通山县| 巴南区| 塔河县| 慈利县| 望奎县| 诸城市| 晋江市| 天等县| 克拉玛依市| 涟源市| 英吉沙县| 凤凰县| 封丘县| 新化县| 高唐县| 隆昌县| 台州市| 灌南县| 德化县| 隆化县| 大兴区| 江孜县| 海口市| 海城市| 印江| 高陵县| 武穴市| 繁峙县| 晋中市| 尼玛县| 德兴市| 顺昌县| 彰化县| 呼玛县| 八宿县|