{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/20","labels_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/20/comments","events_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/20/events","html_url":"https://github.com/dmlc/MXNet.jl/issues/20","id":115718941,"number":20,"title":"Symbol.InterShapeKeyword argument name label not found.","user":{"login":"Andy-P","id":831751,"avatar_url":"https://avatars.githubusercontent.com/u/831751?v=3","gravatar_id":"","url":"https://api.github.com/users/Andy-P","html_url":"https://github.com/Andy-P","followers_url":"https://api.github.com/users/Andy-P/followers","following_url":"https://api.github.com/users/Andy-P/following{/other_user}","gists_url":"https://api.github.com/users/Andy-P/gists{/gist_id}","starred_url":"https://api.github.com/users/Andy-P/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andy-P/subscriptions","organizations_url":"https://api.github.com/users/Andy-P/orgs","repos_url":"https://api.github.com/users/Andy-P/repos","events_url":"https://api.github.com/users/Andy-P/events{/privacy}","received_events_url":"https://api.github.com/users/Andy-P/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-08T09:14:39Z","updated_at":"2015-11-08T18:23:52Z","closed_at":null,"body":"I have just begun experimenting with MxNet in hopes of porting all of my https://github.com/Andy-P/RecurrentNN.jl work to it. I'm still getting used to the symbolic approach and thought I would start with a simple example.\r\n \r\nI created some synthetic data and tried to run a MLP based on your minst example using the LinearRegressionOutput function instead of softmax. Unfortunately, it seems I don't understand how the various parts and labels fit together. I get a `Symbol.InterShapeKeyword argument name mylabel not found.` error. Obviously I am missing something, but I am not sure what. \r\n\r\nAny help would be appreciated in getting over the initial hump.\r\n\r\nThanks,\r\n\r\nAndre\r\n\r\n```julia\r\nusing MXNet\r\n\r\n# create some synthetic data\r\nxs = collect(-0.49:0.005:0.5)\r\nrnd() = rand()*0.1-0.05\r\ny = map(x->x+0.3*sin(4*pi*x),xs)\r\nynoise = map(x->x + rnd()*1.,y);\r\n\r\n# put it in data providers\r\ntrain_provider = mx.ArrayDataProvider(:mydata => xs, :mylabel => ynoise; batch_size=10)\r\neval_provider  = mx.ArrayDataProvider(:mydata => xs, :mylabel => y;      batch_size=10)\r\n```\r\nMXNet.mx.ArrayDataProvider(Array{Float32,N}[Float32[-0.49,-0.485,-0.48,-0.475,-0.47,-0.465,-0.46,-0.455,-0.45,-0.445  …  0.455,0.46,0.465,0.47,0.475,0.48,0.485,0.49,0.495,0.5]],[:mydata],Array{Float32,N}[Float32[-0.4524,-0.428786,-0.405393,-0.382295,-0.359563,-0.337266,-0.315474,-0.294252,-0.273664,-0.253773  …  0.294252,0.315474,0.337266,0.359563,0.382295,0.405393,0.428786,0.4524,0.476163,0.5]],[:mylabel],10,199,false,0.0f0,0.0f0)\r\n\r\n\r\n\r\n\r\n```julia\r\n#-- Option 2: using the mx.chain macro\r\ndata = mx.Variable(:mydata)\r\nfc1  = mx.FullyConnected(data = data, name=:fc1, num_hidden=128)\r\nact1 = mx.Activation(data = fc1, name=:relu1, act_type=:relu)\r\nfc2  = mx.FullyConnected(data = act1, name=:fc2, num_hidden=64)\r\nact2 = mx.Activation(data = fc2, name=:relu2, act_type=:relu)\r\nfc3  = mx.FullyConnected(data = act2, name=:fc3, num_hidden=10)\r\nmlp  = mx.LinearRegressionOutput(data = fc3,label=:mylabel, name=:linear) \r\n```\r\nMXNet.mx.Symbol(MXNet.mx.MX_SymbolHandle(Ptr{Void} @0x00007fe6bc0f61d0))\r\n\r\n```julia\r\n# setup model\r\nmodel = mx.FeedForward(mlp, context=mx.cpu())\r\n```\r\nMXNet.mx.FeedForward(MXNet.mx.Symbol(MXNet.mx.MX_SymbolHandle(Ptr{Void} @0x00007fe6bc0f61d0)),[CPU0],#undef,#undef,#undef)\r\n\r\n```julia\r\noptimizer = mx.SGD(lr=0.1, momentum=0.9, weight_decay=0.00001)\r\n```\r\nMXNet.mx.SGD(0,0,MXNet.mx.SGDOptions(0.1,0.9,1.0e-5,1.0,0,MXNet.mx.FixedLearningRateScheduler(0.1),MXNet.mx.FixedMomentumScheduler(0.9)))\r\n\r\n\r\n\r\n\r\n```julia\r\n# fit parameters\r\nmx.fit(model, optimizer, train_provider, n_epoch=1)\r\n```\r\n\r\n    INFO: Start training on [CPU0]\r\n    INFO: Initializing parameters...\r\n\r\n\r\n\r\n    LoadError: MXNet.mx.MXError(\"[17:53:07] src/symbol/symbol.cc:103: Symbol.InterShapeKeyword argument name mylabel not found.\\nCandidate arguments:\\n\\t[0]mydata\\n\\t[1]fc1_weight\\n\\t[2]fc1_bias\\n\\t[3]fc2_weight\\n\\t[4]fc2_bias\\n\\t[5]fc3_weight\\n\\t[6]fc3_bias\\n\\t[7]linear_label\\n\")\r\n    while loading In[11], in expression starting on line 2\r\n\r\n    \r\n\r\n     [inlined code] from /Users/andrep/.julia/v0.4/MXNet/src/base.jl:57\r\n\r\n     in __infer_shape#2__ at /Users/andrep/.julia/v0.4/MXNet/src/symbol.jl:56\r\n\r\n     in init_model at /Users/andrep/.julia/v0.4/MXNet/src/model.jl:66\r\n\r\n     in _init_model at /Users/andrep/.julia/v0.4/MXNet/src/model.jl:93\r\n\r\n     in fit at /Users/andrep/.julia/v0.4/MXNet/src/model.jl:226\r\n\r\n\r\n    [17:53:07] ./dmlc-core/include/dmlc/logging.h:208: [17:53:07] src/symbol/symbol.cc:103: Symbol.InterShapeKeyword argument name mylabel not found.\r\n    Candidate arguments:\r\n    \t[0]mydata\r\n    \t[1]fc1_weight\r\n    \t[2]fc1_bias\r\n    \t[3]fc2_weight\r\n    \t[4]fc2_bias\r\n    \t[5]fc3_weight\r\n    \t[6]fc3_bias\r\n    \t[7]linear_label\r\n    "},"comment":{"url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/comments/154855477","html_url":"https://github.com/dmlc/MXNet.jl/issues/20#issuecomment-154855477","issue_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/20","id":154855477,"user":{"login":"pluskid","id":3542,"avatar_url":"https://avatars.githubusercontent.com/u/3542?v=3","gravatar_id":"","url":"https://api.github.com/users/pluskid","html_url":"https://github.com/pluskid","followers_url":"https://api.github.com/users/pluskid/followers","following_url":"https://api.github.com/users/pluskid/following{/other_user}","gists_url":"https://api.github.com/users/pluskid/gists{/gist_id}","starred_url":"https://api.github.com/users/pluskid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluskid/subscriptions","organizations_url":"https://api.github.com/users/pluskid/orgs","repos_url":"https://api.github.com/users/pluskid/repos","events_url":"https://api.github.com/users/pluskid/events{/privacy}","received_events_url":"https://api.github.com/users/pluskid/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T18:23:52Z","updated_at":"2015-11-08T18:23:52Z","body":"I was talking about the Julia side only, but I'm open for renaming for libmxnet in general, that makes thing more consistent, though involves more work."}}