AI, graphs and neural networks
แนะนำใหม่
13:04
AI คืออะไร
ไม่มีใครเคยเขียนกฎในการแยกแมวออกจากสุนัข ไม่มีโปรแกรมเมอร์นั่งพิมพ์ว่า "ถ้ามันมีหูแหลมและหนวด" แต่โทรศัพท์ของคุณก็ทำได้…**
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| image-recognition | The process of using a computer to identify what is shown in images. |
| error rate | The number of wrong answers compared with the total number of answers. |
| machine learning/məˈʃiːn ˈlɜːnɪŋ/ | การเรียนรู้ของเครื่อง |
| deep learning/diːp ˈlɜːnɪŋ/ | การเรียนรู้เชิงลึก |
| graph/ɡræf/ | กราฟ |
| artificial neural network/ˌɑːtɪˈfɪʃl ˈnjuːrəl ˈnetwɜːk/ | A system of connected artificial neurons that learns patterns from data. |
| Artificial intelligence/ˌɑːtɪˈfɪʃl ɪnˈtelɪdʒəns/ | Computer methods designed to perform tasks involving abilities such as learning, reasoning, perception or language processing. |
| algorithms/ˈælɡərɪθəmz/ | A finite sequence of precise steps for solving a problem or carrying out a task. |
| neural networks/ˈnjuːrəl ˈnetwɜːks/ | เครือข่ายประสาทเทียม |
| raw data | Data in its original form before it has been processed. |
| pixels/ˈpɪkslz/ | An individual picture element in a digital image or display. |
| features/ˈfiːtʃəz/ | Characteristics of data that help a system find patterns or make decisions. |
| nodes/nəʊdz/ | โหนด |
| edges/ˈedʒɪz/ | เส้นเชื่อม |
| Pathfinding | The process of finding a route between points in a graph. |
| graph search | The process of exploring nodes and edges to find a goal or route. |
| Dijkstra's algorithm/ˈdeɪkstrəz ˈælɡərɪθəm/ | An algorithm that finds shortest paths when all edge weights are zero or greater. |
| A\* | An algorithm that uses path costs and estimated remaining costs to find a route. |
| tree/triː/ | A structure of connected nodes that can split into branches. |
| minimax/ˈmɪnɪmæks/ | มินิแม็กซ์ |
| Knowledge representation | A semantic network holds concepts as nodes and relationships as edges. Breadth-first and depth-first search are the standard tools for exploring any of these. |
| semantic network/səˈmæntɪk ˈnetwɜːk/ | A graph representing concepts as nodes and meaningful relationships as links between them. |
| Breadth-first/bredθ fɜːst/ | Describes a search that explores nearby nodes before moving to more distant nodes. |
| depth-first/depθ fɜːst/ | Describes a search that follows one path as far as possible before returning. |
| weight/weɪt/ | น้ำหนัก |
| artificial neuron/ˌɑːtɪˈfɪʃl ˈnjuːrɒn/ | A computational unit that combines weighted inputs with a bias and applies an activation function to produce an output. |
| bias/ˈbaɪəs/ | A value added to the inputs after each input is multiplied by its weight. |
| non-linear | Describes a relationship that cannot be shown as a straight line. |
| activation function/ˌæktɪˈveɪʃn ˈfʌŋkʃn/ | ฟังก์ชันกระตุ้น |
| input layer | The layer of a neural network that receives the data. |
| hidden layers/ˈhɪdn ˈleɪəz/ | ชั้นซ่อน |
| output layer | The layer of a neural network that produces its final answer. |
| class/klæs/ | A category to which a neural network assigns an item. |
| training/ˈtreɪnɪŋ/ | The process of adjusting a network's weights and biases using data. |
| architecture/ˈɑːkɪtektʃə/ | The arrangement of a neural network's layers and connections between neurons. |
The program that learned to see without being told what to look for
- ในปี 2012 ทีมหนึ่งเข้าร่วมการแข่งขันการจดจำภาพด้วยโปรแกรมที่ไม่เคยได้รับกฎใด ๆ ว่าแมวหน้าตาเป็นอย่างไร มันถูกแสดงภาพถ่ายที่มีฉลากหนึ่งล้านภาพ และมันหากฎขึ้นมาเอง
- มันลดอัตราความผิดพลาดของทุกการเข้าแข่งขันที่เขียนกฎเองลงครึ่งหนึ่ง ภายในสามปี entire field ได้ละทิ้งการเขียนกฎ
- การเปลี่ยนแปลงนี้คือหัวข้อของการเรียนรู้นี้: ไม่ใช่ "เราจะบอกคอมพิวเตอร์ว่าแมวคืออะไรได้อย่างไร" แต่ "คอมพิวเตอร์ทำงานนั้นจากตัวอย่างได้อย่างไร"
- บทเรียนนี้คือความหมายของ machine learning และ deep learning วิธีที่ graph เปลี่ยนปัญหา AI เป็น search และ artificial neural network คำนวณอะไรจริง ๆ
AI, machine learning และ deep learning
- Artificial intelligence คือเป้าหมายกว้าง: ระบบที่ทำหน้าที่ที่ปกติต้องใช้ปัญญามนุษย์ เช่น การมองเห็น เสียง การแปล และการขับรถ
- Machine learning คือแนวทางที่ครอบงำ: algorithms ที่ เรียนรู้ pattern จากข้อมูล แทนที่จะถูกเขียนโปรแกรมทีละขั้น
- Deep learning คือ machine learning ที่ใช้ neural networks ที่มีหลายชั้น มันนำ field มาตั้งแต่ทศวรรษ 2010 เพราะมันเรียนรู้ตรงจาก raw data, pixels หรือเสียงหรือข้อความ โดยไม่มี features ที่ออกแบบเอง
- มีการซ้อนทับกัน: Deep learning เป็นส่วนหนึ่งของ Machine learning ซึ่งเป็นส่วนหนึ่งของ AI

วงกลมสามวง ไม่ใช่สามคู่แข่ง
Machine learning means an algorithm that:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ML learns from data; deep learning is ML using multi-layer neural networks.
How do AI, machine learning and deep learning relate?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
AI is the goal, machine learning is the dominant approach to it, and deep learning is machine learning with many-layered networks.
Graphs, and why so much AI is search
- Graph คือชุดของ nodes ที่เชื่อมต่อกันด้วย edges Nodes คือสถานะ สถานที่ หรือแนวคิด; Edges คือการเคลื่อนไหว ทาง หรือความสัมพันธ์
- Pathfinding: เครือข่ายถนนเป็น graph และการหาเส้นทางคือการค้นหาใน graph โดยใช้ Dijkstra's algorithm หรือ A*
- Game playing: ทุกตำแหน่งบนกระดานเป็น node และทุกการเคลื่อนที่ที่เป็นไปได้เป็น edge ดังนั้นเกมเป็น tree ที่ minimax ค้นหา โดยสันนิษฐานว่าแต่ละผู้เล่นเลือกทางเลือกที่ดีที่สุด
- Knowledge representation: Semantic networkเก็บ concepts เป็น nodes และ relationships เป็น edges Breadth-first และ depth-first search เป็นเครื่องมือมาตรฐานสำหรับการสำรวจสิ่งเหล่านี้
In AI, a graph consists of:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Graphs model states/places as nodes and moves/relationships as edges — used for pathfinding, game trees and knowledge.
ตัวอย่างที่คำนวณแล้ว: สร้างโมเดลปัญหาเป็น graph
- บริษัทจัดส่งต้องการเส้นทางสั้นที่สุดระหว่างเมืองสองเมือง อธิบายว่าสิ่งนี้ถูกแทนที่ด้วย graph อย่างไร
- แต่ละ เมืองเป็น node; แต่ละ ถนนเป็น edge ที่เชื่อมต่อสอง nodes; Edge มี weight, ระยะทางหรือเวลาเดินทาง
- ปัญหาคือ "หาเส้นทางระหว่างโหนดสองจุดที่มีน้ำหนักรวมต่ำที่สุด" ซึ่งอัลกอริทึมของ Dijkstra แก้ไขได้
- บอกว่า nodes คืออะไร edges คืออะไร และ weights หมายความว่าอะไร คำตอบที่บอกแค่ว่า "มันเป็น graph" จะไม่ได้รับคะแนนเลย

A road network is modelled as a graph to find the shortest route. Which statements are correct? Select ทั้งหมด that apply.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Places are nodes and connections are edges. Saying what the weights represent is the third mark.
Artificial neuron
- Artificial neuron รับ input หลายอย่าง มันคูณแต่ละ input ด้วย weight, บวกผลรวมเข้ากับ bias แล้วส่งค่ารวมผ่าน activation function แบบไม่เชิงเส้นเพื่อผลิต output
- น้ำหนักคือสิ่งที่เครือข่าย เรียนรู้ ส่วนฟังก์ชันการกระตุ้น (activation function) คือสิ่งที่ทำให้เครือข่ายสามารถแสดงรูปแบบที่ไม่ใช่เส้นตรงได้: หากไม่มีมัน จำนวนชั้นเท่าไหร่ก็จะถูกยุบรวมเป็นสมการเชิงเส้นเพียงรูปเดียว

คูณ, บวก, แล้วโค้ง
Put the steps inside one artificial neuron in order.
ความยาก 3/5 · 200 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Multiply, sum, activate, pass on. Without the non-linear activation, any depth of network would collapse into one linear formula.
Layers, และคำว่า "deep" หมายความว่าอะไร
- Neurons จัดเรียงเป็น layers Input layer รับข้อมูล One or more hidden layers เรียนรู้ patterns ภายใน Output layer ผลิตคำตอบ เป็น class หรือตัวเลข
- เครือข่ายเรียกว่า deep เมื่อมี hidden layers จำนวนมาก และการฝึกฝนเครือข่ายประเภทนี้เรียกว่า deep learning
- ทำไมชั้นซ่อนจึงสำคัญ: ในเครือข่ายภาพ ชั้นแรกๆ จะเรียนรู้ขอบ ชั้นกลางจะเรียนรู้รูปร่าง และชั้นหลังจะเรียนรู้วัตถุ ไม่มีใครออกแบบลำดับชั้นนี้ไว้เลย มันคือผลลัพธ์จากการฝึกสอน

อินพุต, ซ่อน, เอาต์พุต และการเรียนรู้จะอยู่ในน้ำหนักระหว่างกัน
Tap the parts of a neural network
Explore the layers. Data flows left to right: the input layer takes the features, the hidden layers learn patterns, and the output layer gives the answer — with every connection carrying a weight that training adjusts.
Match each part of a neural network to its role.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Features enter the input layer, hidden layers learn patterns, the output layer answers; learning = tuning the weights.
A neural network is called "deep" when it has many hidden layers, and each neuron takes a weighted sum of its inputs (plus a bias) before applying an activation function.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Stacking many hidden layers lets the network learn richer patterns — training such a network is deep learning.
A neural network is called "deep" when it has:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Many hidden layers make a deep neural network; training one is deep learning.
During training, the values adjusted inside a neural network are its ____.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The architecture and the activation function are chosen by the designer; what the network learns is stored in the weights.
ตัวอย่างการคำนวณ: อธิบายวิธีที่ประสาทเทียมคำนวณ
- อธิบายสิ่งที่เกิดขึ้นภายในประสาทเทียมทางประดิษฐ์หนึ่งตัว [3]
- แต่ละอินพุตจะถูกคูณด้วย น้ำหนัก (weight) ของมันเอง และผลคูณจะถูกบวกเข้าด้วยกันพร้อมกับ ค่าเบี่ยงเบน (bias)
- ผลรวมที่ได้จะถูกส่งผ่าน ฟังก์ชันกระตุ้น (activation function) ซึ่งเป็นแบบไม่เชิงเส้น
- ผลลัพธ์คือเอาต์พุตของนิวรอน ซึ่งกลายเป็นอินพุตสำหรับนิวรอนในชั้นถัดไป น้ำหนักและค่าเบี่ยงเบนคือค่าที่ถูกปรับระหว่างการฝึก

คะแนนที่หลุดหายไป
- การเรียนรู้ของเครื่องเรียนรู้ รูปแบบจากข้อมูล; มันไม่ได้ "ถูกเขียนโปรแกรมทีละขั้นตอน" และไม่ใช่เวทมนตร์ บอกสิ่งที่คุณเรียนรู้จาก
- คำว่า "ลึก" (Deep) หมายถึง มีหลายชั้นซ่อน ไม่ใช่ "ฉลาดมาก" หรือ "ใหญ่โตมาก"
- กราฟคือ โหนดและเส้นเชื่อม, และคำตอบเกี่ยวกับกราฟต้องบอกความหมายของแต่ละส่วนใน ปัญหา นี้
- น้ำหนัก คือสิ่งที่การฝึกสอนเปลี่ยนแปลง ฟังก์ชันกระตุ้นและสถาปัตยกรรมถูกเลือกโดยนักออกแบบ
คุณเข้าใจแล้ว
- AI คือเป้าหมาย, การเรียนรู้ของเครื่อง เรียนรู้รูปแบบจากข้อมูลแทนที่จะทำตามกฎที่เขียนไว้, และ การเรียนรู้เชิงลึก คือการเรียนรู้ของเครื่องที่มี เครือข่ายประสาทเทียม หลายชั้น
- กราฟ ของ โหนด และ เส้นเชื่อม เปลี่ยนการค้นหาเส้นทาง การเล่นเกม และการแสดงความรู้ให้เป็นการค้นหา โดยใช้ Dijkstra, A*, minimax, breadth-first และ depth-first
- นิวรอนเทียม (artificial neuron) คูณอินพุตด้วย น้ำหนัก, บวกค่าเบี่ยงเบน และใช้ฟังก์ชันกระตุ้นแบบไม่เชิงเส้น (non-linear activation function)
- ชั้นทำงานตามลำดับ อินพุต, ซ่อน, เอาต์พุต; ลึก (deep) หมายถึงมีหลายชั้นซ่อน และการเรียนรู้เกิดขึ้นที่น้ำหนัก
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้
Try it in the lab 32
All labs →- Teach a Perceptron
- Train a Network on Your Drawings
- Teach a Robot by Reward
- Build a Decision Tree
- Nearest Neighbours
- Roll Down the Loss
- Find the Groups
- Find the Shortest Route
- See Like a Computer
- Guess the Next Word
- Is the Computer Fair?
- Build an Expert System
- Evolve a Catapult
- Catch the Spam
- Think Ahead
- Inside a Neural Network
- Learning or Remembering? Overfitting
- Search the Maze
- What Should I Watch? A Recommender
- Teach a Car to Drive
- Matchbox Learner
- Build a Chatbot
- Fewer Colours
- Mood Meter
- Spot the Fraud
- Hear the Word
- Follow the Ants
- Plan the Delivery Round
- Squash the Data
- Explore or Exploit? Learning by Trying
- Mark the Model
- Ask Many Models