Last active
January 31, 2017 08:15
-
-
Save HackerEarthBlog/c59c28391315ed420d24d14068fbc9ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set seed to reproduce results | |
mx.set.seed(1) | |
mlpmodel <- mx.mlp(data = train.x | |
,label = train.y | |
,hidden_node = 3 #one layer with 10 nodes | |
,out_node = 2 | |
,out_activation = "softmax" #softmax return probability | |
,num.round = 100 #number of iterations over training data | |
,array.batch.size = 20 #after every batch weights will get updated | |
,learning.rate = 0.03 #same as step size | |
,eval.metric= mx.metric.accuracy | |
,eval.data = list(data = test.x, label = test.y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment