<prompt> Matplotlib kutumia kuonyesha graph ya mafunzo tathmini ya mfano.  <response>: Hakika, hapa ni mfano wa kipande cha code kuonyesha grafu ya mafunzo tathmini ya mfano kwa kutumia matplotlib kudhani tayari mafunzo mfano wako na kupata mafunzo na uthibitishaji metrics: kuagiza matplotlib.pyplot kama plt kudhani train_metrics na val_metrics ni numpy arrays epochs mbalimbali 1, lentrain_metrics 1 fig, ax plt.subplots ax.plot epochs, train_metrics, bo, labelTraining Metrics.plot epochs, val_metrics, r, labelValidation Metrics ax._setleModel Training Evaluation ax.set_labelEpoch ax.set_ylab ax.metrics 