This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Replies: 2 comments
-
You can pass eval_data(your validation data) and eval_metric(metric for your validation data) in the # create a module
mod = mx.mod.Module(symbol=net,
context=mx.cpu(),
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) Will print
For more info visit here |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mxnet-label-bot add [python, question] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how can I get train-acc and validation-acc explicitly rather than just call modul.fit(), or In other words, how can I customize the call_back to get train-acc and validation-acc per epoch?
Beta Was this translation helpful? Give feedback.
All reactions