11 Jun Machine Learning & Supervised Learning with basic scikit-learn (part2)
บทความนี้จะพูดถึงการทำ supervised machine learning โดยใช้ข้อมูล iris จาก datasets ของ sklearn ที่เราได้เตรียมไว้ตอน part1 กัน (ใครที่ข้ามมาบทความนี้เลย แนะนำให้อ่าน part1 ก่อนเพื่อความต่อเนื่องของเนื้อหานะฮะ) และใน ver.2 นี้ เราจะมาพูดถึง – รู้จัก K-nearest Neighbors – ทำ classification: fit & predict – ดู performance การทำนายของ ML สั้นๆ ก็คือ เราจะทำ ML ที่มี target แบบ classification ซึ่งจะใช้ทฤษฎี K-nearest Neighbors เริ่มจากให้ข้อมูลกลุ่ม train กับ ML ทำการเรียนรู้ (fit) เพื่อให้ได้ pattern ออกมา แล้วลองให้มันทำนาย (predict) ข้อมูลกลุ่ม test จาก pattern นั้น สุดท้ายเราจะมาดู performance กัน ว่ามันทำนายได้แม่นแค่ไหน!
Sorry, the comment form is closed at this time.