braindotai commented on issue #15534: how to get get train-acc and 
validation-acc per epoch explicitly per epoch?
URL: 
https://github.com/apache/incubator-mxnet/issues/15534#issuecomment-511200504
 
 
   You can pass evaluation data in .fit call as below:
   
   ```python
   # create a module
   mod = mx.mod.Module(symbol=net,
                       context=mx.gpu(),
                       data_names=['data'],
                       label_names=['softmax_label'])
   
   # fit the module
   mod.fit(train_iter,
           eval_data=val_iter,
           optimizer='sgd',
           optimizer_params={'learning_rate':0.1},
           eval_metric='acc',
           num_epoch=7)
   ```
   For more info checkout 
[here](https://mxnet.incubator.apache.org/versions/master/tutorials/basic/module.html)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to