ในการเทรนโมเดล Deep Neural Network ใน Jupyter Notebook แต่ละรอบมักใช้เวลาค่อนข้างนาน เราอาจจะต้องการให้มีเล่นเสียงเตือนขึ้นมา เช่น หลังจากที่เทรน Machine Learning รัน Training Loop 3 Cell นั้นเสร็จ เพื่อที่ได้ไม่ต้องมาคอยเช็คหน้าจอเป็นระยะ ดูว่าโปรแกรมทำงานเสร็จแล้วหรือยัง ต้องทำอย่างไร

เราสามารถใช้ Code ตัวอย่างหัวข้อ 1. ด้านล่าง ไปใส่ใน Jupyter Notebook แทรก Cell ให้รันต่อจาก Cell ที่ต้องการ ก็จะเล่นเสียงอัตโนมัติขึ้นมา ต่อจาก Cell ที่กำหนดรันเสร็จ

A horse (with rider) rearing out of control. Credit https://commons.wikimedia.org/wiki/File:Jinete_jineteada_doma_8.jpg
A horse (with rider) rearing out of control. Credit https://commons.wikimedia.org/wiki/File:Jinete_jineteada_doma_8.jpg

Code นี้ สามารถใช้กับ Notebook อื่น ๆ ได้ เช่น Google Colab

เรามาเริ่มกันเลยดีกว่า

Open In Colab

แชร์ให้เพื่อน:

Surapong Kanoktipsatharporn on FacebookSurapong Kanoktipsatharporn on LinkedinSurapong Kanoktipsatharporn on Rss
Surapong Kanoktipsatharporn
Solutions Architect at Bua Labs
The ultimate test of your knowledge is your capacity to convey it to another.

Published by Surapong Kanoktipsatharporn

The ultimate test of your knowledge is your capacity to convey it to another.