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

Predicting output with a neural network

By combining layers of neurons together we create a stacked function that has non-linear transformations and trainable weights so it can learn to recognize complex relationships. To visualize this, let's transform the neural network from previous sections into a mathematical formula. First, let's take a look at the formula for a single layer:

The X variable is a vector that represents the input for the layer in the neural network. The w parameter represents a vector of weights for each of the elements in the input vector, X. In many neural network implementations, an additional term, b, is added, this is called the bias and basically increases or decreases the overall level of input required to activate the neuron. Finally, there's a function, f, which is the activation function for the layer.

Now that you've seen the formula for a single layer, let's put together additional layers to create the formula for the neural network:

Notice how the formula has changed. We now have the formula for the first layer wrapped in another layer function. This wrapping or stacking of functions continues when we add more layers to the neural network. Each layer introduces more parameters that need to be optimized to train the neural network. It also allows the neural network to learn more complex relationships from the data we feed into it. 

To make a prediction with a neural network, we need to fill all of the parameters in the neural network. Let's assume we know those because we trained it before. What's left is the input value for the neural network. 

The input is a vector of floating-point numbers that is a representation of the input of our neural network. The output is a vector that forms a representation of the predicted output of the neural network.

主站蜘蛛池模板: 故城县| 株洲县| 株洲县| 博客| 赤峰市| 靖州| 安顺市| 连平县| 兴和县| 合阳县| 光山县| 秦皇岛市| 安岳县| 清流县| 博湖县| 胶州市| 宁陕县| 昌图县| 通渭县| 黑龙江省| 潼南县| 玛纳斯县| 惠水县| 苏州市| 楚雄市| 怀安县| 克什克腾旗| 蒲江县| 独山县| 大足县| 淮阳县| 钟山县| 怀安县| 邮箱| 阿巴嘎旗| 大宁县| 阜南县| 绥阳县| 池州市| 河东区| 泰州市|