Skip to content

Instantly share code, notes, and snippets.

@HackerEarthBlog
Last active January 31, 2017 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HackerEarthBlog/928a6b2be2b54ababf01f9a796a4ce61 to your computer and use it in GitHub Desktop.
Save HackerEarthBlog/928a6b2be2b54ababf01f9a796a4ce61 to your computer and use it in GitHub Desktop.
#configure another network
data <- mx.symbol.Variable("data")
fc1 <- mx.symbol.FullyConnected(data, name = "fc1", num_hidden=10) #1st hidden layer
act1 <- mx.symbol.Activation(fc1, name = "sig", act_type="relu")
fc2 <- mx.symbol.FullyConnected(act1, name = "fc2", num_hidden=2) #2nd hidden layer
out <- mx.symbol.SoftmaxOutput(fc2, name = "soft")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment