Skip to Content
파이토치로 배우는 LLM & AI
book

파이토치로 배우는 LLM & AI

by 로런스 모로니, 박해선
March 2026
Intermediate
504 pages
11h 26m
Korean
Hanbit Media, Inc.
Content preview from 파이토치로 배우는 LLM & AI
114
1
부
모델 구축
콜랩에 이미지를 업로드하여 [그림
3
-
17
]과 같이 예측을 수행할 수 있습니다.
그림
3-17
발을 핥는 고양이 분류 결과
업로드한 첫 번째 이미지는 래브라도 리트리버 강아지입니다. 모델이 반환한 텐서는
[–
14
.
9642
,
18
.
3943
]
이므로 첫 번째 레이블일 가능성은 매우 낮고, 두 번째 레이블일 가능성은 매우 높습
니다. 훈련할 때 이미지 디렉터리를 알파벳 순서로 읽기 때문에 고양이
cat
의 레이블은
0
이고 강
아지
dog
의 레이블은
1
입니다.
torch
.
max
를 사용하여 큰 값을 찾으면
[
1
]
이 반환됩니다. 이는
두 번째 뉴런에 해당하며, 즉 이 이미지는 강아지라는 것을 나타냅니다.
두 번째 이미지에 대해서는 모델이
[
5
.
3486
, –
4
.
8260
]
을 출력했기 때문에 첫 번째 뉴런의 값
이 더 높습니다. 따라서 고양이로 감지했습니다. 이 숫자의 크기는 예측의 강도를 나타냅니다.
예를 들어 첫 번째 이미지가 강아지라는 확신이 두 번째 이미지가 고양이라는 확신보다 훨씬
큽니다.
강아지-고양이 분류 모델에 대한 전체 코드는 깃허브에서 확인할 수 있습니다.
11
11
옮긴이_
dogs
-
vs
-
cats
데이터셋을 사용한 노트북은 원서 깃허브(
https
://
github
.
com
/
lmoroney
/
tfbook
/
blob
/
master
/
chapter3
/
transfer ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI 에이전트 엔지니어링

AI 에이전트 엔지니어링

마이클 알바다
핸즈온 LLM

핸즈온 LLM

제이 알아마르, 마르턴 흐루턴도르스트
만들면서 배우는 생성 AI

만들면서 배우는 생성 AI

데이비드 포스터

Publisher Resources

ISBN: 9791175790223