You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
안녕하세요 강의 잘 듣고 있습니다. 데이터 과학의 Tensorflow (python) 듣는 도중 네번째 딥러닝 - 신경망의 완성:히든레이어 강의에서
H = tf.keras.layers.Dense(8, activation="swish")(X)
H = tf.keras.layers.Dense(8, activation="swish")(H)
H = tf.keras.layers.Dense(8, activation="swish")(H)
Y = tf.keras.layers.Dense(3, activation='softmax')(H)
Activity
paullabkorea commentedon Jul 28, 2021
지금 사용하신 것이 히든레이어를 3개 둔 것입니다.
아마도 위에 X가 생략되어 있는 듯 하고요.
맨 마지막만 수정해주시면 됩니다.
아래와 같은 형식으로 사용합니다.
RayleighKim commentedon Jul 28, 2021
히든레이어안의 activation 함수와, 아웃풋레이어 ( '예측할 때' 라고 언급하신 부분으로 추측중입니다.)안의 activation 함수는 그 역할이 다른 경우가 흔합니다.
역할이 다르다면, 그 역할에 적절한 activation을 골라서 사용해야 하지요.
softmax 는 일반적으로, 여러 클래스를 분류하는 모델의 아웃풋레이어에 사용하기 적합합니다.