Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
333
부록 A
보충 학습
# 손실이 개선되면 새로운 값을 유지하고 그렇지 않으면 원복합니다.
if
new_loss
<
best_loss:
print("y = {0}x + {1}".format(m,
b))
best_loss
=
new_loss
else:
m
-=
m_adjust
b
-=
b_adjust
print("y = {0}x + {1}".format(m,
b))
알고리즘의 진행 상황을 확인해보세요. 대략
y
=
1
.
9395722046562853x
+
4
.
7318340512
45578
인 함수를 얻습니다. 이 답을 검증해봅시다. 엑셀 또는 데스모스를 사용해 선형 회귀를
수행했을 때 데스모스는
y
=
1
.
93939x
+
4
.
73333
을 출력했습니다. 나쁘지 않네요! 꽤 유사
합니다.
왜 백만 번을 반복했을까요? 실험을 통해 해결책이 더 이상 크게 개선되지 않고
m
b
를 최적
값에 가깝게 수렴시켜 제곱 합을 최소화시키는 방법이 충분한 반복이라는 것을 발견했기 때문
입니다. 많은 머신러닝 라이브러리와 알고리즘에는 수행할 반복 횟수에 대한 매개변수가 있습
니다. 정확히 이와 동일한 작업을 수행합니다. 정답에 수렴할 수 있을 정도로 충분해야 하지만,
이미 허용 가능한 해를 찾았다면 계산 시간을 낭비할 정도로 오래 반복하면 안 됩니다.
또 한 가지 궁금한 점이 있을 ...
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

개발자를 위한 머신러닝&딥러닝

개발자를 위한 머신러닝&딥러닝

로런스 모로니

Publisher Resources

ISBN: 9791169212502