활성화 함수가 없는 경우, 뉴런 네트워크는 선형 관계(linear relationship)만 학습할 수 있다
곡선(curves)를 학습하기 위해서는 활성화 함수(activate function)을 사용해야 한다
(ReLU Unit의 모습)
📌 Fully connected network
: 한 층의 모든 뉴런이 다음층 뉴런과 연결된 상태
from tensorflow import keras
from tensorflow.keras import layers
model = keras.Sequential([
# the hidden ReLU layers
layers.Dense(units=4, activation='relu', input_shape=[2]),
layers.Dense(units=3, activation='relu'),
# the linear output layer
layers.Dense(units=1),
])