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

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.

主站蜘蛛池模板: 龙陵县| 蓝山县| 怀安县| 绍兴市| 连山| 丽水市| 松滋市| 武定县| SHOW| 沁水县| 东乌珠穆沁旗| 息烽县| 甘南县| 塘沽区| 怀仁县| 当阳市| 分宜县| 台东县| 抚宁县| 岳普湖县| 城步| 龙门县| 益阳市| 江阴市| 天津市| 弥勒县| 扎兰屯市| 平陆县| 炎陵县| 新沂市| 屯昌县| 合川市| 泰来县| 天等县| 前郭尔| 宁陵县| 新竹县| 龙口市| 贵南县| 如皋市| 华坪县|