모두를 위한 딥러닝 - ML Lec 02

Dylan·2022년 7월 26일
0

ML lec 02 - Linear Regression의 Hypothesis 와 cost 설명

Predicting exam score: regression

regression은 학습된 데이터를 기반으로 예측한다.

Regression (data)

(Linear) Hypothesis

Which hypothesis is better?

Cost function (Loss function)

  • How fit the line to our (training) data

Goal: Minimize cost

ML lab 02 - TensorFlow로 간단한 linear regression을 구현 (new)

1. Build graph using TF operations

Variable는 흔히 알고있는 변수와는 달리 텐서플로우가 사용하는 Variable이다. 텐서플로우를 실행시키면 텐서플로우가 자체적으로 변경시키는 값이다.

2. , 3. Run / update graph and get results

Full code ( less than 20 lines)

Placeholders

Full code with placeholders

TensorFlow Mechanics

0개의 댓글