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

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
179
5
선형 회귀
sum_of_squares
+=
residual_squared
print("제곱 합= {}".format(sum_of_squares))
# 제곱 합 = 28.096969704500005
다음 질문으로 넘어가보죠. 사이킷런과 같은 라이브러리를 사용하지 않고 제곱 합의 최솟값을
만드는
m
b
를 어떻게 찾을 수 있을까요? 다음 절에서 살펴보겠습니다.
5.3
최적의 직선 찾기
이제 데이터 포인트에 대한 직선의 품질을 측정하는 방법인 제곱 합을 알았습니다. 이 수치가
낮을수록 더 잘 맞는 직선입니다. 그럼 최소 제곱 합을 만드는
m
b
값은 어떻게 찾을까요?
주어진 문제를 푸는 값을 찾는 데 사용할 수 있는 몇 가지 검색 알고리즘이 있습니다. 한 가지
방법은 무차별 대입
brute
-
force
방식을 사용해
m
b
값을 무작위로 수백만 개 생성한 후, 최소 제
곱 합을 만들 수 있습니다. 하지만 이 방법은 적절한 근삿값을 찾는 데 아주 많은 시간이 걸리
기 때문에 실용적이지 않습니다. 조금 더 친절한 방법이 필요합니다. 이번 절에서는 다섯 가지
기법인 닫힌 형식 방정식, 역행렬, 행렬 분해, 경사 하강법, 확률적 경사 하강법을 소개합니다.
부록
A
.
7
절에서 소개하는 언덕 오르기
hill
climbing
와 같은 다른 검색 알고리즘도 있지만 여기서는 ...
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