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

Back to deep learning

Many of the concepts in the previous section apply to deep learning because deep learning is simply neural networks with two or more hidden layers. To demonstrate this, let's look at the following code in R that loads the mxnet deep learning library and calls the help command on the function in that library that trains a deep learning model. Even though we have not trained any models using this library yet, we have already seen many of the parameters in this function:

library(mxnet)
?mx.model.FeedForward.create
If you get errors saying the mxnet package is unavailable, see Chapter 1Getting Started with Deep Learning, for installation instructions. However, we are not running any mxnet code in this chapter, we only want to display the help page for a function. So feel free to just  continue reading and you can install the package later when we use it in the next chapter.

This brings up the help page for the FeedForward function in the mxnet library, which is the forward-propagation/model train function. mxnet and most deep learning libraries do not have a specific backward-propagation function, they handle this implicitly:

mx.model.FeedForward.create(symbol, X, y = NULL, ctx = NULL,
begin.round = 1, num.round = 10, optimizer = "sgd",
initializer = mx.init.uniform(0.01), eval.data = NULL,
eval.metric = NULL, epoch.end.callback = NULL,
batch.end.callback = NULL, array.batch.size = 128
...)

We will see more of this function in subsequent chapters; for now we will just look at the parameters.

主站蜘蛛池模板: 西青区| 柳江县| 辰溪县| 清流县| 扶风县| 东阿县| 顺平县| 扶沟县| 台南市| 德庆县| 新民市| 峨山| 安徽省| 桐梓县| 阿巴嘎旗| 独山县| 鄂伦春自治旗| 碌曲县| 青阳县| 饶平县| 沁源县| 山东省| 利川市| 阿图什市| 建湖县| 鹤庆县| 湘乡市| 安福县| 安阳县| 霍山县| 伊春市| 张掖市| 璧山县| 鄂尔多斯市| 金塔县| 洛浦县| 江津市| 拜泉县| 大港区| 广宁县| 观塘区|