이 명령이 실행되면 콜랩 내의 현재 환경이 원하는 파이토치 버전을 사용하게 됩니다. 하지만
콜랩에서 이를 실행할 때는 주의해야 합니다. 변경한 파이토치 버전에
Cuda
드라이버가 설치
되지 않을 수 있으며 이는
CPU
를 사용하도록 다운그레이드된다는 의미입니다.
1.6
머신러닝 시작하기
이번 장 앞부분에서 보았듯이 머신러닝의 패러다임은 데이터와 데이터에 대한 레이블(정답)
을 가지고 있을 때 데이터와 레이블을 매핑하는 규칙을 찾는 것입니다. 코드로 작성하기 위해
가장 간단한 시나리오를 생각해 보자면 다음과 같습니다.
다음 두 세트의 숫자를 생각해 보죠.
x=–1, 0, 1, 2, 3, 4
y=–3, –1, 1, 3, 5, 7
x
값과
y
값은 관련이 있습니다. 예를 들어
x
가
-
1
이면
y
가
-
3
이고,
x
가
3
이면
y
는
5
입니다. 어
떤 관계가 있는지 보이나요?
조금만 살펴보면
y
=
2x
-
1
패턴을 발견할 수 있습니다. 어떻게 이 관계를 파악했나요? 사
람마다 방식은 다르겠지만
x
가 순서대로
1
씩 증가하고
y
는
2
씩 증가한다는 것을 관찰할 수 있
으므로
y
=
2x
+/–
정도를 예측할 것입니다. 그다음
x
=
0
일 때
y
= -
1
이므로
y
=
2x
-
1
이라는 답을 찾을 수 있습니다. 그리고 다른 값이 이 가설에 부합하는지 확인한 ...
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.
O’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
I 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
I’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
I'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.