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

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.

主站蜘蛛池模板: 毕节市| 青田县| 清丰县| 延川县| 乌苏市| 肇庆市| 瑞金市| 阿瓦提县| 扶绥县| 盘山县| 邻水| 本溪市| 合山市| 白城市| 西乡县| 永安市| 界首市| 潞西市| 大宁县| 清苑县| 获嘉县| 大方县| 长顺县| 内丘县| 祁门县| 湘乡市| 济宁市| 榆中县| 抚宁县| 扎赉特旗| 全南县| 吉安县| 阜南县| 万荣县| 江川县| 祁东县| 桓台县| 舟山市| 阜宁县| 肃北| 丹阳市|