물고기에 대한 무게 예측값을 얻을 수 있다. 예를 들어 데이터셋의 첫 번째 물고기는 도미이고
길이 측정값은
.x232
1
1
=
,
.x254
2
1
=
,
x30
3
1
=
,
.x1152
1
4
=
,
.x402
1
5
=
다. 이 값을 위 식에
대입하여 첫 번째 물고기의 무게 예측값을 구해보자.
y
= -
3
+
4x
1
+
0
.
2x
2
+
0
.
03x
3
+
0
.
4x
4
+
0
.
5x
5
레이블이 정해진 데이터셋에 있는 물고기의 경우
y
true
i
값을 가지고 있다. 데이터셋에서 첫 번
째 물고기의 실제 무게는
gramsy242
true
1
=
이다. 임의의
w
값을 사용한 우리의 선형 모델은
102
.
398
grams
이라고 예측했다. 물론
w
값을 전혀 보정하지 않았기 때문에 예측한 값과 실제
값은 꽤 차이가 있다. 모델에서 예측한 ...
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.