맛보기 — 눌러서 들어 보세요A taste — tap to hear it
A taste of the first two chapters. Every chapter is in the book.
-
인공지능ingongjineung
artificial intelligence아터퓌실 인텔러전스
사람이 머리로 하던 일을 기계가 하게 만드는 분야The field of making machines do work that used to need a human mind
인공지능은 한 가지 방법이 아니라 넓은 분야 이름이다.Artificial intelligence names a wide field, not one method.
-
기계 학습 (머신러닝)gigye hakseup
machine learning머쉰 을러닝
규칙을 적어 주지 않고 예에서 규칙을 찾아내게 하는 방법A way of finding the rules from examples instead of writing the rules down
규칙을 다 적을 수 없을 때 기계 학습을 쓴다.We use machine learning when the rules cannot all be written down.
-
딥러닝 (심층 학습)dimneoning
deep learning딥 을러닝
층을 여러 겹 쌓은 신경망으로 하는 기계 학습Machine learning done with neural networks stacked many layers deep
딥러닝은 층을 깊게 쌓아 어려운 모양을 담는다.Deep learning stacks layers deep to hold difficult shapes.
-
규칙 기반 시스템gyuchik giban siseutem
rule-based system룰-베이스트 시스텀
사람이 「이러면 이렇게」를 다 적어 둔 프로그램A program in which a person has written out every 'if this, then that'
규칙 기반 시스템은 적어 둔 경우만 다룬다.A rule-based system handles only the cases that were written down.
-
모델model
model마들
입력을 받아 출력을 내놓는, 숫자로 된 함수 한 벌One bundle of numbers that works as a function from input to output
모델은 결국 큰 수의 묶음이다.A model is, in the end, a bundle of many numbers.
-
학습 (훈련)hakseup
training트레이닝
예를 보며 모델 안의 숫자를 고쳐 가는 일The work of changing the numbers inside a model while looking at examples
학습은 손실이 줄어드는 쪽으로 숫자를 옮긴다.Training moves the numbers in the direction that shrinks the loss.
-
추론churon
inference인풔런스
다 학습된 모델에 새 입력을 넣어 답을 받는 일Putting a new input into a finished model and taking the answer
추론할 때는 매개변수가 바뀌지 않는다.Parameters do not change during inference.
-
예측yecheuk
prediction프리딕션
모델이 내놓은 답 — 맞을 수도 틀릴 수도 있다What the model says; it may be right or wrong
예측에는 늘 틀릴 수 있다는 말이 붙는다.A prediction always comes with the words 'may be wrong'.
-
데이터 집합 (데이터셋)deiteo jipap
dataset데이터셋
학습에 쓰려고 모아 둔 예의 묶음The bundle of examples gathered to train on
데이터 집합이 치우쳐 있으면 모델도 치우친다.If the dataset leans, so does the model.
-
매개변수maegaebyeonsu
parameter퍼래머터
학습이 고쳐 나가는 모델 안의 숫자A number inside the model that training changes
매개변수 개수가 모델 크기를 말한다.The number of parameters is what model size means.
-
알고리즘algorijeum
algorithm앨거리둼
무엇을 어떤 순서로 하는지 적은 절차A written procedure: what to do, in what order
같은 데이터에 알고리즘을 바꿔 보기도 한다.You may also try a different algorithm on the same data.
-
확률hwangnyul
probability프라버빌러티
0 과 1 사이 숫자로 적은 일어날 가능성How likely something is, written as a number between 0 and 1
0.9 는 아홉 번에 가깝게 그렇다는 말이다.Zero point nine means it is so close to nine times out of ten.
-
통계tonggye
statistics스터티스틱스
많은 수를 모아 모양과 흔들림을 보는 방법Gathering many numbers to see their shape and their spread
통계 없이는 이겼는지 운이었는지 모른다.Without statistics you cannot tell winning from luck.
-
수su
number넘버
모델이 다루는 유일한 재료 — 글자도 그림도 수로 바꿔 넣는다The only material a model handles: text and pictures are turned into numbers first
글자도 수로 바꾼 뒤에야 모델에 들어간다.Text enters a model only after it has been turned into numbers.
-
벡터bekteo
vector붹터
줄지어 늘어선 수 한 줄One row of numbers lined up
낱말 하나를 벡터 한 줄로 적는다.One word gets written as one vector.
-
행렬haengnyeol
matrix메이트릭스
가로·세로로 놓인 수의 판 — 모델에 들어가는 것은 결국 모두 이 꼴이 된다A board of numbers laid out in rows and columns; everything entering a model ends up in this shape
글도 그림도 소리도 들어갈 때는 행렬이 된다.Text, pictures and sound all become a matrix on the way in.
-
행haeng
row로우
행렬의 가로 한 줄 — 토큰 하나나 예 하나가 한 행이 된다One crosswise line of a matrix; one token or one example becomes one row
토큰 10 개를 넣으면 행이 10 개다.Put ten tokens in and there are ten rows.
-
열yeol
column칼럼
행렬의 세로 한 줄 — 차원 하나가 한 열이 된다One lengthwise line of a matrix; one dimension becomes one column
차원이 4 면 열이 4 개다.With four dimensions there are four columns.
-
모양moyang
shape셰이프
행이 몇, 열이 몇인가 — 계산이 되는지 안 되는지를 정한다How many rows by how many columns; it decides whether a computation works at all
모양이 안 맞으면 곱셈 자체가 안 된다.If the shapes do not match, the multiplication cannot happen at all.
-
전치jeonchi
transpose트랜스포우즈
행과 열을 맞바꾸는 일 — 모양이 (3, 4) 면 (4, 3) 이 된다Swapping the rows and the columns: a shape of three by four becomes four by three
어텐션 점수는 쿼리에 키의 전치를 곱해 얻는다.Attention scores come from the query times the transpose of the key.
-
행렬 곱haengnyeol gop
matrix multiplication메이트릭스 멀터플러케이션
앞 행렬의 한 행과 뒤 행렬의 한 열을 내적해 새 판을 만드는 셈Taking the dot product of a row from the first and a column from the second to make a new board
신경망 한 층은 행렬 곱 한 번과 더하기 한 번이다.One layer of a neural network is one matrix multiplication and one addition.
-
차원chawon
dimension디멘션
벡터 한 줄에 들어 있는 수의 개수 — 행렬에서는 열의 개수How many numbers one vector holds; in a matrix, the number of columns
차원이 크면 담을 수 있는 뜻도 늘지만 계산도 늘어난다.More dimensions hold more meaning but also cost more compute.
-
무작위mujagwi
random랜덤
다음에 무엇이 나올지 정해 두지 않은 것Not decided in advance what comes next
처음 가중치는 무작위로 넣는다.The first weights go in at random.
-
시드 (씨값)sideu
seed시드
무작위를 늘 같은 순서로 만들게 하는 첫 수The first number that makes the random sequence come out the same every time
시드를 적어 두면 다음에도 같은 결과가 나온다.Write the seed down and the same result comes back later.
-
재현성jaehyeonseong
reproducibility리프러듀서빌러티
같은 입력과 같은 시드로 같은 결과가 다시 나오는 것The same input and the same seed giving the same result again
재현성이 없으면 고쳤는지 운이었는지 가릴 수 없다.Without reproducibility you cannot tell a fix from luck.
-
데이터deiteo
data데이타
기계가 배우는 재료 — 이미 일어난 일을 적어 둔 것What a machine learns from: a record of what already happened
데이터가 모델의 한계를 먼저 정한다.The data sets the model's limit first.
-
예ye
example이그잼플
데이터 한 건 — 입력 하나와 (있으면) 정답 하나One item of data: one input and, if there is one, one right answer
예 하나하나가 모델을 조금씩 옮긴다.Each single example moves the model a little.
-
표본pyobon
sample샘플
전체에서 뽑아 온 일부A part taken out of the whole
표본이 작으면 결론을 믿기 어렵다.A small sample makes a conclusion hard to trust.
-
픽셀 (화소)piksel
pixel픽슬
그림을 이루는 한 칸 — 밝기나 색을 수로 적은 것One slot a picture is made of, with its brightness or colour written as numbers
가로 28 세로 28 짜리 그림은 수 784 개다.A picture twenty-eight by twenty-eight is seven hundred and eighty-four numbers.
-
파형pahyeong
waveform웨이븨푐
소리를 짧은 동안마다 수 하나로 적어 늘어놓은 줄Sound written as one number per short moment, lined up
1 초 소리도 수만 개의 수로 적힌다.Even one second of sound is written as tens of thousands of numbers.
-
특징teukjing
feature퓌처
입력에서 골라 쓰는 한 가지 성질One property of the input that gets used
좋은 특징 하나가 층 몇 겹보다 낫다.One good feature beats several extra layers.
-
레이블 (정답표)reibeul
label을레이블
그 예의 정답으로 붙여 둔 값The value attached to an example as its right answer
레이블이 틀려 있으면 모델은 그 틀림을 배운다.If a label is wrong, the model learns that wrongness.
-
입력imnyeok
input인풋
모델에 넣는 것What goes into the model
입력 모양이 바뀌면 모델은 당황한다.When the shape of the input changes, the model stumbles.
-
출력chullyeok
output아웃풋
모델이 내놓는 것What comes out of the model
출력은 확률 묶음일 때가 많다.The output is often a bundle of probabilities.
-
목표값mokpyogap
target타깃
모델이 맞히려는 값 — 레이블을 수로 적은 것The value the model aims at: the label written as a number
목표값과 출력의 차이가 손실이 된다.The gap between target and output becomes the loss.
-
학습 집합hakseup jipap
training set트레이닝 셋
모델의 숫자를 고치는 데 쓰는 예들The examples used to change the model's numbers
학습 집합만 잘하는 모델은 쓸 수 없다.A model good only on the training set is of no use.
-
검증 집합geomjeung jipap
validation set봴러데이션 셋
고르기를 정하려고 따로 떼어 둔 예들Examples set aside to decide the choices
검증 집합을 보며 학습률을 고른다.We pick the learning rate while watching the validation set.
-
시험 집합siheom jipap
test set테스트 셋
마지막에 한 번만 쓰는, 끝까지 숨겨 둔 예들Examples kept hidden to the end and used once
시험 집합을 자주 보면 그것도 학습 집합이 된다.Look at the test set often and it becomes a training set too.
-
나누기nanugi
split스플릿
데이터를 학습·검증·시험으로 갈라 두는 일Dividing the data into training, validation and test
나누기는 데이터를 만지기 전에 먼저 해 둔다.Do the split before touching the data.
-
분포bunpo
distribution디스트러뷰션
값들이 어디에 얼마나 몰려 있는지의 모양The shape of where the values crowd and how much
쓸 때의 분포가 학습 때와 다르면 무너진다.If the distribution in use differs from training, things fall apart.
-
표본 편향pyobon pyeonhyang
sampling bias샘플링 바이어스
뽑아 온 예가 전체를 닮지 않아 생기는 치우침The lean that comes from samples not resembling the whole
한 곳에서만 모으면 표본 편향이 생긴다.Gathering from one place only creates sampling bias.
-
잡음jabeum
noise노이즈
규칙과 상관없이 섞여 들어온 흔들림Wobble mixed in that has nothing to do with the rule
잡음까지 맞히려 들면 과적합이다.Trying to get the noise right too is overfitting.
-
이상치isangchi
outlier아웃을라이어
다른 값들과 너무 멀리 떨어진 한 값One value sitting far away from the rest
이상치 하나가 평균을 크게 끌고 간다.One outlier drags the mean a long way.
-
결측치gyeolcheukchi
missing value미싱 봴류
비어 있는 칸An empty slot
결측치를 0 으로 메우면 0 이라는 뜻이 된다.Filling a missing value with zero makes it mean zero.
-
정규화jeonggyuhwa
normalization노어멀리제이션
값의 크기를 비슷한 범위로 맞춰 두는 일Bringing values into a similar range
정규화를 해 두면 학습이 훨씬 수월하다.Training goes much easier when values are normalized.
-
증강jeunggang
augmentation오그멘테이션
있는 예를 조금씩 바꿔 예를 늘리는 일Making more examples by changing the ones you have a little
증강은 데이터가 적을 때 먼저 써 본다.Augmentation is the first thing to try when data is scarce.
-
데이터 누출deiteo nuchul
data leakage데이타 을리키지
시험에 쓸 것이 학습에 섞여 점수만 좋아지는 일What belongs to the test leaking into training, so only the score improves
데이터 누출은 좋은 점수로 위장하고 온다.Data leakage arrives disguised as a good score.
-
QAI 와 기계 학습은 어떻게 달라?AI wa gigye hakseubeun eotteoke dalla?How are AI and machine learning different?하우 아 에이아이 앤드 머쉰 을러닝 디풔런트
A인공지능은 분야 이름이고, 기계 학습은 그 분야에서 쓰는 한 가지 방법이야.ingongjineungeun bunya ireumigo, gigye hakseubeun geu bunyaeseo sseuneun han gaji bangbeobiya.Artificial intelligence names the field; machine learning is one method used in it.아터퓌실 인텔러전스 네임즈 둬 퓔드 머쉰 을러닝 이즈 원 메써드 유즈드 인 잇
-
Q규칙을 적어 주는 것과 배우게 하는 것 중 뭐가 나아?gyuchigeul jeogeo juneun geotgwa baeuge haneun geot jung mwoga naa?Which is better, writing the rules or having them learned?위치 이즈 베터 라이팅 둬 룰즈 오 해뷩 뒘 을런드
A규칙을 말로 적을 수 있으면 적는 쪽이 나아. 못 적을 때 기계 학습을 쓰는 거야.gyuchigeul mallo jeogeul su isseumyeon jeongneun jjogi naa. mot jeogeul ttae gigye hakseubeul sseuneun geoya.If the rule can be written in words, write it. Machine learning is for when it cannot.이픠 둬 룰 캔 비 리튼 인 워즈 라잇 잇 머쉰 을러닝 이즈 푀 웬 잇 캐낫
-
Q모델이 뭔지 한마디로 말해 줘.moderi mwonji hanmadiro malhae jwo.Tell me in one phrase what a model is.텔 미 인 원 픠레이즈 왓 어 마들 이즈
A입력을 받아 출력을 내는 수의 묶음이야. 그 수를 고치는 일이 학습이고.imnyeogeul bada chullyeogeul naeneun suui mukkeumiya. geu sureul gochineun iri hakseubigo.A bundle of numbers from input to output. Changing those numbers is training.어 번들 어븨 넘버즈 픠럼 인풋 투 아웃풋 체인징 되우즈 넘버즈 이즈 트레이닝
-
Q학습과 추론은 어떻게 달라?hakseupgwa churoneun eotteoke dalla?How do training and inference differ?하우 두 트레이닝 앤드 인풔런스 디풔
A학습은 매개변수를 고치고, 추론은 고치지 않고 쓰기만 해.hakseubeun maegaebyeonsureul gochigo, churoneun gochiji anko sseugiman hae.Training changes the parameters; inference only uses them without changing.트레이닝 체인지즈 둬 퍼래머터즈 인풔런스 온리 유시즈 뒘 위돠웃 체인징
-
Q왜 글자를 수로 바꿔야 해?wae geuljareul suro bakkwoya hae?Why does text have to become numbers?와이 더즈 텍스트 해븨 투 비컴 넘버즈
A모델이 할 수 있는 건 곱하기와 더하기뿐이라서, 수가 아니면 들어가지도 못해.moderi hal su inneun geon gopagiwa deohagippuniraseo, suga animyeon deureogajido motae.All a model can do is multiply and add, so what is not a number cannot even go in.올 어 마들 캔 두 이즈 멀터플라이 앤드 애드 소우 왓 이즈 낫 어 넘버 캐낫 이븬 고우 인
-
Q벡터와 행렬은 왜 자꾸 나와?bekteowa haengnyeoreun wae jakku nawa?Why do vectors and matrices keep coming up?와이 두 붹터즈 앤드 메이트리시즈 킵 커밍 업
A수 하나씩 다루면 느려서, 줄과 판으로 묶어 한꺼번에 계산하기 때문이야.su hanassik darumyeon neuryeoseo, julgwa paneuro mukkeo hankkeobeone gyesanhagi ttaemuniya.One number at a time is slow, so they get bundled into rows and boards and computed at once.원 넘버 앳 어 타임 이즈 슬로우 소우 뒈이 겟 번들드 인투 로우즈 앤드 보즈 앤드 컴퓨티드 앳 원스
-
Q들어가는 게 다 행렬이야?deureoganeun ge da haengnyeoriya?Does everything that goes in become a matrix?더즈 에븨리씽 됏 고우즈 인 비컴 어 메이트릭스
A응. 글은 토큰 번호를 거쳐 임베딩 행렬이 되고, 그림은 픽셀 수의 판, 소리는 파형 수의 줄이 돼.eung. geureun tokeun beonhoreul geochyeo imbeding haengnyeori doego, geurimeun piksel suui pan, sorineun pahyeong suui juri dwae.Yes. Text becomes an embedding matrix by way of token numbers, a picture becomes a board of pixel numbers, and sound a line of waveform numbers.예스 텍스트 비컴즈 앤 임베딩 메이트릭스 바이 웨이 어븨 토우큰 넘버즈 어 픽처 비컴즈 어 보드 어븨 픽슬 넘버즈 앤드 사운드 어 을라인 어븨 웨이븨푐 넘버즈
-
Q행이랑 열은 뭘 뜻해?haengirang yeoreun mwol tteutae?What do the rows and the columns mean?왓 두 둬 로우즈 앤드 둬 칼럼즈 민
A글에서는 행 하나가 토큰 하나, 열 하나가 차원 하나야. 그래서 모양은 토큰 수 곱 차원이야.geureseoneun haeng hanaga tokeun hana, yeol hanaga chawon hanaya. geuraeseo moyangeun tokeun su gop chawoniya.In text one row is one token and one column is one dimension, so the shape is token count by dimensions.인 텍스트 원 로우 이즈 원 토우큰 앤드 원 칼럼 이즈 원 디멘션 소우 둬 셰이프 이즈 토우큰 카운트 바이 디멘션즈
-
Q모양을 왜 그렇게 챙겨?moyangeul wae geureoke chaenggyeo?Why keep such an eye on the shape?와이 킵 서치 앤 아이 안 둬 셰이프
A앞 행렬의 열 개수와 뒤 행렬의 행 개수가 같아야 곱이 돼. 안 맞으면 계산 자체가 안 돼.ap haengnyeorui yeol gaesuwa dwi haengnyeorui haeng gaesuga gataya gobi dwae. an majeumyeon gyesan jachega an dwae.The first matrix's columns must match the second's rows, or the multiplication cannot happen at all.둬 풔스트 메이트릭시즈 칼럼즈 머스트 매치 둬 세컨즈 로우즈 오 둬 멀터플러케이션 캐낫 해픈 앳 올
-
Q신경망 한 층이 결국 뭐야?singyeongmang han cheungi gyeolguk mwoya?What is one layer of a network, in the end?왓 이즈 원 을레이어 어븨 어 네트워크 인 둬 엔드
A행렬 곱 한 번에 치우침을 더하고 한 번 구부리는 거야. 그게 전부야.haengnyeol gop han beone chiuchimeul deohago han beon guburineun geoya. geuge jeonbuya.One matrix multiplication, add the bias, bend once. That is all.원 메이트릭스 멀터플러케이션 애드 둬 바이어스 벤드 원스 됏 이즈 올
-
Q차원이 크면 좋은 거야?chawoni keumyeon joeun geoya?Is a big dimension a good thing?이즈 어 비그 디멘션 어 굿 씽
A담을 뜻은 늘지만 계산과 메모리도 늘어. 공짜가 아니야.dameul tteuseun neuljiman gyesangwa memorido neureo. gongjjaga aniya.It holds more meaning but also costs more compute and memory. It is not free.잇 호울즈 모 미닝 벗 올소 카스츠 모 컴퓻 앤드 메머리 잇 이즈 낫 픠리
-
Q무작위인데 어떻게 같은 결과가 나와?mujagwiinde eotteoke gateun gyeolgwaga nawa?If it is random, how does the same result come back?이픠 잇 이즈 랜덤 하우 더즈 둬 세임 리절트 컴 백
A시드를 적어 두면 같은 순서로 수가 나와서 결과도 같아져.sideureul jeogeo dumyeon gateun sunseoro suga nawaseo gyeolgwado gatajyeo.Write the seed down and the numbers come in the same order, so the result does too.라잇 둬 시드 다운 앤드 둬 넘버즈 컴 인 둬 세임 오더 소우 둬 리절트 더즈 투
차례 — 17장Contents — 17 chapters
- 0처음Getting Started
- 1데이터Data
- 2배운다는 것What Learning Is
- 3모델Models
- 4손실Loss
- 5경사 하강Gradient Descent
- 6과적합Overfitting
- 7신경망Neural Networks
- 8역전파Backpropagation
- 9토큰Tokens
- 10임베딩Embeddings
- 11언어 모델Language Models
- 12어텐션Attention
- 13트랜스포머Transformers
- 14학습과 미세조정Training and Fine-tuning
- 15프롬프트Prompts
- 16확인하기Checking