Precision and recall

Dear all
How can we calculate the precision and recall of the classifier for each epoch?
Now I can do it only at the end of the training.
any solution, please

When you initialize your learner, you enter an argument named ‘metrics’, which we usually give the value as accuracy or error_rate.
Instead, you can simply write metrics=[Precision(),Recall()] ,and you should be good to go