AI, graphs and neural networks
도입됨
13:04
인공지능이란 무엇인가
고양이와 개를 구분하는 규칙을 쓴 사람은 없다. 프로그래머가 "만일 족한 귀와 수염이 있다면"이라고 타이핑한 적도 없다. 그런데도你的手机는…한다.
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| 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. |
무엇을 찾아야 할지 알려지지 않고 보기를 배운 프로그램
- In 2012 a team entered an image-recognition competition with a program that had never been given a single rule about what a cat looks like. It had been shown a million labelled photographs, and it worked out the rules itself.
- 이는 모든 수동 프로그래밍된 Entries의 오류율을 절반으로 줄였습니다. 3년 내에 해당 분야 전체가 규칙을 작성하는 것을 포기했습니다.
- 이러한 역전이 이 주제의 핵심입니다: "우리가 컴퓨터에게 고양이가 무엇인지 어떻게 말해야 하는가"가 아니라 "컴퓨터가 예시로부터 어떻게 이해하는가"입니다.
- 이 교훈이 바로 머신러닝(machine learning) 과 딥러닝(deep learning) 의 의미이며, 그래프(graph) 가 AI 문제를 탐색 문제로 전환하는 방식, 그리고 인공 신경망(artificial neural network) 이 실제로 계산하는 내용입니다.
AI, 머신러닝 및 딥러닝
- 인공지능(AI) 은 시각, 음성, 번역, 운전 등 일반적으로 인간 지능이 필요한 작업을 수행하는 시스템이라는 광범위한 목표입니다.
- 머신러닝은 이를 지배하는 접근법입니다: 단계별로 프로그래밍받는 대신 데이터에서 패턴을 학습하는 알고리즘입니다.
- 딥러닝은 여러 계층의 신경망(neural networks) 을 사용하는 머신러닝입니다. 2010년대부터 이 분야에서 주도해 왔습니다. 손으로 설계한 특징(feature) 없이 원시 데이터, 픽셀, 오디오 또는 텍스트에서 직접 학습하기 때문입니다.
- 이들은 중첩됩니다: 딥러닝은 머신러닝의 일부이며, 머신러닝은 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.
그래프, 그리고 왜 많은 AI가 탐색(search)인가
- 그래프는 노드(node) 들이 엣지(edge) 로 연결된 집합입니다. 노드는 상태, 장소 또는 개념이며, 엣지는 이동, 도로 또는 관계입니다.
- 경로 탐색: 도로망은 그래프이며, 경로를 찾는 것은 Dijkstra 알고리즘이나 A*를 사용하는 그래프 탐색입니다.
- 게임 플레이: 모든 보드 게임 위치는 노드이고, 모든 합법적인-move는 엣지이므로, 게임은 각 플레이어가 최선의 선택을 한다고 가정하는 minimax 탐색을 수행하는 트리입니다.
- 지식 표현(knowledge representation): 의미망 semantic network은 개념을 노드로, 관계를 엣지로 유지합니다. 너비 우선(Breadth-first) 및 ** 깊이 우선(Depth-first)** 탐색은 이러한 것들을 탐색하는 표준 도구입니다.
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.
worked example: 문제를 그래프로 모델링하기
- 배달 회사가 두 도시 사이의 최단 경로를 원합니다. 이것이 그래프로 어떻게 표현되는지 설명하십시오.
- Each town is a node; each road is an edge joining two nodes; the edge carries a weight, the distance or the travel time.
- 그러면 문제는 "두 노드 사이의 총 가중치가 가장 작은 경로를 찾음"이 되며, 이는 Dijkstra 알고리즘으로 해결됩니다.
- 노드가 무엇인지, 엣지가 무엇인지, 무중량이 무엇을 의미하는지 말하십시오. "이는 그래프입니다"라고만 말하는 답은 점수를 얻을 수 없습니다.

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.
인공 뉴런
- 인공 뉴런은 여러 입력을 받습니다. 각 입력에 무중량(weight) 을 곱하여 편향(bias) 와 더한 뒤, 총합을 비선형 활성화 함수(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)'이 무슨 뜻인가
- 뉴런은 레이어로 배치됩니다. 입력 레이어가 데이터를 받습니다. 하나 이상의 숨겨진 레이어가 내부 패턴을 학습합니다. 출력 레이어가 정답(범주 또는 숫자)을 산출합니다.
- 숨겨진 계층이 많을 때 네트워크를 딥(deep) 이라고 하며, 이러한 네트워크를 훈련시키는 것이 딥러닝입니다.
- 숨겨진 레이어의 중요성: 이미지 네트워크에서 초기 레이어는 가장자리, 중간 레이어는 형태, 후기 레이어는 개체를 학습합니다. 이 계층 구조는 설계된 것이 아니라 훈련을 통해 자연스럽게 형성된 것입니다.

입력, 숨겨진 계층, 출력 및 학습은 이들을 연결하는 가중치(weights)에 포함됨

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.
풀이 예제: 신경망(neuron)의 연산 방식 설명하기
- 단일 인공 신경망 내부에서 일어나는 과정을 설명하십시오. [3]
- 각 입력에는 고유한 가중치(weight) 를 곱하고, 그 결과값들을 편향(bias) 과 함께 더합니다.
- 계산된 합계는 비선형인 활성화 함수(activation function) 를 통과합니다.
- 최종 결과가 이 신경망의 출력이며, 이는 다음 층의 다른 신경망들에 입력값이 됩니다. 가중치와 편향은 학습 과정에서 조정되는 값입니다.

놓칠 수 있는 점
- 기계 학습은 데이터에서 패턴을 학습합니다. '단계별로 프로그래밍된 것'이 아니며, 마법도 아닙니다. 무엇을 통해 학습하는지 명시하십시오.
- "딥(deep)"이라는 용어는 매우 영리하거나 크다는 뜻이 아니라 숨겨진 계층이 많음을 의미합니다.
- 그래프는 노드와 엣지로 구성되며, 그래프에 대한 답은 이 문제에서 각각이 무엇을 나타내는지를 명시해야 합니다.
- 가중치는 학습을 통해 변경되는 요소입니다. 활성화 함수와 아키텍처는 설계자가 선택합니다.
이해했습니다
- AI는 목표이며, 머신러닝은 수동 규칙을 따르는 대신 데이터에서 패턴을 학습하고, 딥러닝은 다층 신경망을 사용하는 머신러닝입니다.
- 노드와 간선으로 구성된 그래프는 디스트라, A*, 미니맥스, 너비 우선 및 깊이 우선 알고리즘을 사용하여 경로 탐색, 게임 플레이 및 지식 표현을 검색 문제로 변환합니다.
- 인공 뉴런은 입력에 가중치를 곱한 뒤 편향을 더하고 비선형 활성화 함수를 적용합니다.
- 계층은 입력, 은닉, 출력 순으로 작동하며, 딥이라는 것은 은닉 계층이 많음을 의미하고 학습은 가중치에 저장됩니다.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.
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