From 1722b08abfd2952a84594fd16e297905e187a93b Mon Sep 17 00:00:00 2001 From: "Qiang Kou (KK)" Date: Sat, 15 Apr 2017 22:57:27 -0400 Subject: [PATCH] [R] update docs (close #5683) (#5856) --- docs/tutorials/r/fiveMinutesNeuralNetwork.md | 2 +- docs/zh/api/r/fiveMinutesNeuralNetwork.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/r/fiveMinutesNeuralNetwork.md b/docs/tutorials/r/fiveMinutesNeuralNetwork.md index 6c966d008ace..9104e8f05c2f 100644 --- a/docs/tutorials/r/fiveMinutesNeuralNetwork.md +++ b/docs/tutorials/r/fiveMinutesNeuralNetwork.md @@ -87,7 +87,7 @@ Note that `mx.set.seed` controls the random process in `mxnet`. You can see the To get an idea of what is happening, view the computation graph from R: ```{r} - graph.viz(model$symbol$as.json()) + graph.viz(model$symbol) ``` [](https://github.com/dmlc/mxnet) diff --git a/docs/zh/api/r/fiveMinutesNeuralNetwork.md b/docs/zh/api/r/fiveMinutesNeuralNetwork.md index ed2c204fb119..1f4a530b37c1 100644 --- a/docs/zh/api/r/fiveMinutesNeuralNetwork.md +++ b/docs/zh/api/r/fiveMinutesNeuralNetwork.md @@ -94,7 +94,7 @@ model <- mx.mlp(train.x, train.y, hidden_node=10, out_node=2, out_activation="so 想要知道具体发生了什么,我们可以在R中轻松看到计算图: ```{r} -graph.viz(model$symbol$as.json()) +graph.viz(model$symbol) ``` [![](https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/knitr/graph.computation.png)](https://github.com/dmlc/mxnet)