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

A forward pass

Over the course of this book, we will build powerful neural networks that are able to approximate extremely complex functions. We will be mapping text to named entities, images to their content, and even news articles to their summaries. But for now, we will work with a simple problem that can be solved with logistic regression, a popular technique used in both economics and finance.

We will be working with a simple problem. Given an input matrix, X, we want to output the first column of the matrix, X1. In this example, we will be approaching the problem from a mathematical perspective in order to gain some intuition for what is going on.

Later on in this chapter, we will implement what we have described in Python. We already know that we need data to train a neural network, and so the data, seen here, will be our dataset for the exercise:

In the dataset, each row contains an input vector, X, and an output, y.

The data follows the formula:

The function we want to approximate is as follows:

In this case, writing down the function is relatively straightforward. However, keep in mind that in most cases it is not possible to write down the function, as functions expressed by deep neural networks can become very complex.

For this simple function, a shallow neural network with only one layer will be enough. Such shallow networks are also called logistic regressors.

主站蜘蛛池模板: 安丘市| 利津县| 临泽县| 城口县| 南岸区| 长子县| 南汇区| 甘孜县| 姚安县| 蓝山县| 上蔡县| 修武县| 东阿县| 长寿区| 调兵山市| 淮南市| 巴林右旗| 江口县| 南靖县| 阜平县| 蕉岭县| 吉安市| 保靖县| 庆云县| 旌德县| 洛南县| 忻州市| 久治县| 五常市| 卢氏县| 汉沽区| 确山县| 正宁县| 曲沃县| 偃师市| 宁津县| 湛江市| 铜山县| 巴彦淖尔市| 田林县| 南郑县|