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

  • Deep Learning with R for Beginners
  • Mark Hodnett Joshua F. Wiley Yuxi (Hayden) Liu Pablo Maldonado
  • 256字
  • 2021-06-24 14:30:41

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.

主站蜘蛛池模板: 越西县| 静乐县| 温州市| 扶余县| 吴桥县| 灵武市| 隆回县| 辽阳市| 青海省| 通许县| 综艺| 陆川县| 翁牛特旗| 白水县| 盱眙县| 海丰县| 达尔| 海南省| 昌图县| 龙泉市| 临安市| 诸暨市| 临高县| 宜都市| 自治县| 望奎县| 苗栗县| 河曲县| 固阳县| 河东区| 赞皇县| 重庆市| 丹凤县| 和平县| 闽清县| 且末县| 新竹县| 水城县| 钦州市| 阿城市| 景洪市|