แนวคิด
ใช้ matplotlib และเมธอด plot เพื่อวาดกราฟ Loss ต่อ Training Steps
แนวคิด Transfer Learning, TensorFlow Hub, Google Colab เหมือนเดิม
ตัวอย่างโค้ด
print("Visualizing the data - loss versus training steps")
plt.figure()
plt.ylabel("Loss")
plt.xlabel("Training Steps")
plt.ylim([0,2])
plt.plot(batch_stats_callback.batch_losses)
Credit: TensorFlow Tutorials
ผลลัพธ์

คำอธิบาย
- หลังเทรนบางรอบ โมเดลจะแสดงความก้าวหน้า
- ความก้าวหน้านี้แสดงเป็นกราฟ Training Steps ต่อ Loss บนคอนโซล