{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/5302","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/5302/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/5302/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/5302/events","html_url":"https://github.com/dmlc/mxnet/issues/5302","id":212638593,"number":5302,"title":"graph.viz broken - returns  Error in symbol$as.json : $ operator is invalid for atomic vectors","user":{"login":"dockstreet","id":1080803,"avatar_url":"https://avatars3.githubusercontent.com/u/1080803?v=3","gravatar_id":"","url":"https://api.github.com/users/dockstreet","html_url":"https://github.com/dockstreet","followers_url":"https://api.github.com/users/dockstreet/followers","following_url":"https://api.github.com/users/dockstreet/following{/other_user}","gists_url":"https://api.github.com/users/dockstreet/gists{/gist_id}","starred_url":"https://api.github.com/users/dockstreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dockstreet/subscriptions","organizations_url":"https://api.github.com/users/dockstreet/orgs","repos_url":"https://api.github.com/users/dockstreet/repos","events_url":"https://api.github.com/users/dockstreet/events{/privacy}","received_events_url":"https://api.github.com/users/dockstreet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-08T05:03:21Z","updated_at":"2017-03-08T05:28:20Z","closed_at":null,"body":"For bugs or installation issues, please provide the following information.\r\nThe more information you provide, the more likely people will be able to help you.\r\n\r\n## Environment info\r\nOperating System:Windows 7 / RHEL 7 \r\n\r\nCompiler:g++\r\n\r\nPackage used (Python/R/Scala/Julia):R\r\n\r\nMXNet version:0.9.4\r\n\r\nOr if installed from source:\r\n\r\nMXNet commit hash (`git rev-parse HEAD`):\r\n\r\nIf you are using python package, please provide\r\n\r\nPython version and distribution:\r\n\r\nIf you are using R package, please provide\r\n\r\nR `sessionInfo()`:R version 3.3.1 (2016-06-21)\r\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\r\nRunning under: Windows 7 x64 (build 7601) Service Pack 1\r\n\r\nlocale:\r\n[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252\r\n[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] mxnet_0.9.4   mlbench_2.1-1\r\n\r\nloaded via a namespace (and not attached):\r\n [1] htmlwidgets_0.8  magrittr_1.5     rsconnect_0.7    htmltools_0.3.5  visNetwork_1.0.4 tools_3.3.1      Rcpp_0.12.9     \r\n [8] codetools_0.2-15 stringi_1.1.2    digest_0.6.12    stringr_1.2.0    jsonlite_1.3    \r\n\r\n## Error Message:\r\nPlease paste the full error message, including stack trace.\r\nError in symbol$as.json : $ operator is invalid for atomic vectors\r\n\r\n## Minimum reproducible example\r\n\r\nI try :\r\nhttp://mxnet.io/tutorials/r/fiveMinutesNeuralNetwork.html \r\n\r\nrequire(mlbench)\r\n## Loading required package: mlbench\r\nrequire(mxnet)\r\n## Loading required package: mxnet\r\n## Loading required package: methods\r\ndata(Sonar, package=\"mlbench\")\r\n\r\nSonar[,61] = as.numeric(Sonar[,61])-1\r\ntrain.ind = c(1:50, 100:150)\r\ntrain.x = data.matrix(Sonar[train.ind, 1:60])\r\ntrain.y = Sonar[train.ind, 61]\r\ntest.x = data.matrix(Sonar[-train.ind, 1:60])\r\ntest.y = Sonar[-train.ind, 61]\r\n\r\nmx.set.seed(0)\r\nmodel <- mx.mlp(train.x, train.y, hidden_node=10, out_node=2, out_activation=\"softmax\",\r\n                num.round=20, array.batch.size=15, learning.rate=0.07, momentum=0.9,\r\n                eval.metric=mx.metric.accuracy)\r\n\r\ngraph.viz(model$symbol$as.json())\r\n\r\n## Steps to reproduce\r\nor if you are running standard examples, please provide the commands you have run that lead to the error.\r\n\r\ngraph.viz(model$symbol$as.json())\r\n\r\n## What have you tried to solve it?\r\n\r\n1. different parameters and saving the variable out, but no luck\r\n"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/284950865","html_url":"https://github.com/dmlc/mxnet/issues/5302#issuecomment-284950865","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/5302","id":284950865,"user":{"login":"jeremiedb","id":18605903,"avatar_url":"https://avatars1.githubusercontent.com/u/18605903?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremiedb","html_url":"https://github.com/jeremiedb","followers_url":"https://api.github.com/users/jeremiedb/followers","following_url":"https://api.github.com/users/jeremiedb/following{/other_user}","gists_url":"https://api.github.com/users/jeremiedb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremiedb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremiedb/subscriptions","organizations_url":"https://api.github.com/users/jeremiedb/orgs","repos_url":"https://api.github.com/users/jeremiedb/repos","events_url":"https://api.github.com/users/jeremiedb/events{/privacy}","received_events_url":"https://api.github.com/users/jeremiedb/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T05:28:20Z","updated_at":"2017-03-08T05:28:20Z","body":"Hi, the graph.viz now takes the symbol as argument. You can try `graph.viz(model$symbol)`. This allowed to add the option to display the shapes of the outputs following each operator. However, I noticed DiagrammeR was not loaded by the NAMESPACE, so I'm not sure if you're having the latest version. "}}
{"actor":{"display_login":"jeremiedb"}}