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

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.

主站蜘蛛池模板: 民县| 葫芦岛市| 新宾| 安远县| 泰安市| 远安县| 石泉县| 临洮县| 囊谦县| 化隆| 湖北省| 尚志市| 金川县| 卢湾区| 新龙县| 江城| 阳山县| 山阴县| 清新县| 保亭| 秭归县| 丰镇市| 金溪县| 郴州市| 环江| 嘉兴市| 河东区| 镶黄旗| 平顺县| 大荔县| 金华市| 会同县| 民县| 禹州市| 乌兰浩特市| 德江县| 武强县| 交城县| 阿坝县| 樟树市| 库尔勒市|