활성화 함수

Python으로 시작하는 Deep Learning

Dan Becker

Data Scientist and contributor to Keras and TensorFlow libraries

선형 vs 비선형 함수

ch1_3.003.png

Python으로 시작하는 Deep Learning

활성화 함수

  • 노드 입력에 적용하여 노드 출력을 생성합니다
Python으로 시작하는 Deep Learning

신경망 개선하기

ch1_3.007.png

Python으로 시작하는 Deep Learning

활성화 함수

ch1_3.009.png

Python으로 시작하는 Deep Learning

ReLU (정류 선형 활성화)

ch1_3.011.png

Python으로 시작하는 Deep Learning

활성화 함수

import numpy as np
input_data = np.array([-1, 2])
weights = {'node_0': np.array([3, 3]),
               'node_1': np.array([1, 5]),
               'output': np.array([2, -1])}
node_0_input = (input_data * weights['node_0']).sum()
node_0_output = np.tanh(node_0_input)
node_1_input = (input_data * weights['node_1']).sum()
node_1_output = np.tanh(node_1_input)
hidden_layer_outputs = np.array([node_0_output, node_1_output])
output = (hidden_layer_output * weights['output']).sum()
print(output)
1.2382242525694254
Python으로 시작하는 Deep Learning

연습해 봅시다!

Python으로 시작하는 Deep Learning

Preparing Video For Download...