สมัครเรียนโทร. 085-350-7540 , 084-88-00-255 , ntprintf@gmail.com

AI / Machine Learning

Machine Learning Machine Learning - Mean Median Mode Machine Learning - Standard Deviation Machine Learning - Percentiles Machine Learning - Data Distribution Machine Learning - Normal Data Distribution Machine Learning - Scatter Plot Machine Learning - Linear Regression Machine Learning - Multiple Regression Machine Learning - Polynomial Regression Machine Learning - Scale Machine Learning - Train/Test Machine Learning - Decision Tree The brief history of artificial intelligence - ประวัติศาสตร์ AI ฉบับย่อ Jupyter Notebook on AWS Pandas Tutorials ตรวจจับตำแหน่งของมือจากกล้องเว็บแคมแบบเรียลไทม์ด้วย Python ง่าย ๆ ใน 2 นาที ตรวจจับวัตถุด้วย Python ใน 5 Steps ใช้ AI แบ่งส่วนภาพคนกับฉากหลังแบบง่าย ๆ แป๊บเดียวเสร็จ ใช้ AI บอกท่าทางคนด้วย Code เพียง 15 บรรทัด สร้างแอนิเมชันจากตัวการ์ตูนที่เราวาดเองด้วย Code 2 บรรทัด สร้างไฟล์ท่าเต้นสุดคิวท์ให้ตัวการ์ตูนเต้นตามใน 1 คำสั่ง Artificial Intelligence (AI) Machine Learning 8 Fun Machine Learning ProjectsFor Beginner การหาค่าเหมาะที่สุด (Optimization) Mathematical Optimization Top 20 Python Machine Learning Open Source Projects Introduction to Neural Networks Introduction to Deep Learning with TensorFlow Installing TensorFlow for Deep Learning - OPTIONAL Deep Learning with TensorFlow - Creating the Neural Network Model Deep Learning with TensorFlow - How the Network will run

Machine Learning - Scatter Plot

เรียนเขียนโปรเเกรมง่ายๆกับ Expert Programming Tutor ในบท Macchine Learnning - Scatter Plot 
ในบทนี้เราจะเรียนเนื้อหาพล็อตกระจายเป็นแผนภาพที่แต่ละค่าในชุดข้อมูลถูกแสดงด้วยจุด


โมดูล Matplotlib มีวิธีการในการวาดแผนการกระจายมันต้องการสองอาร์เรย์ที่มีความยาวเท่ากันหนึ่งตัวสำหรับค่าของแกน x และอีกหนึ่งค่าสำหรับแกน y

x = [5,7,8,7,2,17,2,9,4,11,12,9,6]
y = [99,86,87,88,111,86,103,87,94,78,77,85,86]

- อาร์เรย์ x แทนอายุของรถยนต์แต่ละคัน
- อาร์เรย์ y แสดงถึงความเร็วของรถแต่ละคัน
ตัวอย่าง
ใช้วิธี scatter() เพื่อวาดแผนภาพพล็อตกระจาย

import matplotlib.pyplot as plt
x = [5,7,8,7,2,17,2,9,4,11,12,9,6]
y = [99,86,87,88,111,86,103,87,94,78,77,85,86]
plt.scatter(x, y)
plt.show()

ผลลัพธ์

แผนการกระจายอธิบาย
แกน x แทนอายุและแกน y แสดงถึงความเร็ว สิ่งที่เราสามารถอ่านได้จากแผนภาพคือรถที่เร็วที่สุดทั้งสองคันมีอายุ 2 ปีและรถที่ช้าที่สุดคือ 12 ปี
การแจกแจงข้อมูลแบบสุ่ม
ในการเรียนรู้ของเครื่องชุดข้อมูลสามารถมีค่าหลายพันหรือหลายล้านค่า  นักเรียนอาจไม่มีข้อมูลในโลกแห่งความจริงเมื่อนักเรียนกำลังทดสอบอัลกอริทึมนักเรียนอาจต้องใช้ค่าที่สร้างแบบสุ่ม
ดังที่เราได้เรียนรู้ในบทก่อนหน้านี้โมดูล NumPy สามารถช่วยเราได้! ให้เราสร้างสองอาร์เรย์ที่เต็มไปด้วย 1,000 ตัวเลขสุ่มจากการแจกแจงข้อมูลปกติ
- อาร์เรย์แรกจะมีค่าเฉลี่ยที่ 5.0 เป็นค่าเบี่ยงเบนมาตรฐานที่ 1.0
- อาร์เรย์ที่สองจะมีค่าเฉลี่ยตั้งค่าเป็น 10.0 โดยมีค่าเบี่ยงเบนมาตรฐาน 2
ตัวอย่าง
พล็อตกระจายที่มี 1,000 จุด

import numpy
import matplotlib.pyplot as plt
x = numpy.random.normal(5.0, 1.0, 1000)
y = numpy.random.normal(10.0, 2.0, 1000)
plt.scatter(x, y)
plt.show()

ผลลัพธ์


แผนการกระจายอธิบาย
- เราจะเห็นว่าจุดต่างๆ นั้นมีความเข้มข้นประมาณ 5 ตามแกน x และ 10 ในแกน y
- เราสามารถเห็นได้ว่าสเปรดนั้นกว้างกว่าบนแกน y มากกว่าบนแกน x
แปลจากhttps://www.w3schools.com/python/python_ml_scatterplot.asp


Tag ที่น่าสนใจ: machine_learning scatter_plot matplotlib data_visualization python programming numpy random_data algorithm tutorial programming_tutor


บทความนี้อาจจะมีที่ผิด กรุณาตรวจสอบก่อนใช้

หากมีข้อผิดพลาด/ต้องการพูดคุยเพิ่มเติมเกี่ยวกับบทความนี้ กรุณาแจ้งที่ http://m.me/Expert.Programming.Tutor

ไม่อยากอ่าน Tutorial อยากมาเรียนเลยทำอย่างไร?

สมัครเรียน ONLINE ได้ทันทีที่ https://elearn.expert-programming-tutor.com

หรือติดต่อ

085-350-7540 (DTAC)
084-88-00-255 (AIS)
026-111-618
หรือทาง EMAIL: NTPRINTF@GMAIL.COM

แผนที่ ที่ตั้งของอาคารของเรา

แผนผังการเรียนเขียนโปรแกรม

Link อื่นๆ

Allow sites to save and read cookie data.
Cookies are small pieces of data created by sites you visit. They make your online experience easier by saving browsing information. We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.

Copyright (c) 2013 expert-programming-tutor.com. All rights reserved. | 085-350-7540 | 084-88-00-255 | ntprintf@gmail.com

ติดต่อเราได้ที่

085-350-7540 (DTAC)
084-88-00-255 (AIS)
026-111-618
หรือทาง EMAIL: NTPRINTF@GMAIL.COM
แผนที่ ที่ตั้งของอาคารของเรา