순전파

Python으로 시작하는 Deep Learning

Dan Becker

Data Scientist and contributor to Keras and TensorFlow libraries

은행 거래 예시

  • 다음을 바탕으로 예측합니다:
    • 자녀 수
    • 기존 계좌 수
Python으로 시작하는 Deep Learning

순전파

ch1_2.007.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.008.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.009.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.010.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.011.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.012.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.013.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.014.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.015.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.016.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.017.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.018.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.019.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.020.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.021.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.022.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.023.png

Python으로 시작하는 Deep Learning

순전파

ch1_2.024.png

Python으로 시작하는 Deep Learning

순전파

  • 곱하고 더하기 과정
  • 점곱
  • 한 번에 한 데이터 포인트에 대해 순전파
  • 출력은 해당 데이터 포인트의 예측값
Python으로 시작하는 Deep Learning

순전파 코드

import numpy as np
input_data = np.array([2, 3])
weights = {'node_0': np.array([1, 1]),
           'node_1': np.array([-1, 1]),
           'output': np.array([2, -1])}
node_0_value = (input_data * weights['node_0']).sum()
node_1_value = (input_data * weights['node_1']).sum()
Python으로 시작하는 Deep Learning

순전파 코드

hidden_layer_values = np.array([node_0_value, node_1_value])

print(hidden_layer_values)
[5, 1]
output = (hidden_layer_values * weights['output']).sum()

print(output)
9
Python으로 시작하는 Deep Learning

연습해 봅시다!

Python으로 시작하는 Deep Learning

Preparing Video For Download...