더북(TheBook)

실행 결과

Model: "sequential"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
embedding (Embedding)        (None, 4, 8)              168       
_________________________________________________________________
flatten (Flatten)            (None, 32)                0         
_________________________________________________________________
dense (Dense)                (None, 1)                 33        
=================================================================
Total params: 201
Trainable params: 201
Non-trainable params: 0
_________________________________________________________________
Epoch 1/20
1/1 [==============================] - 0s 325ms/step - loss: 0.6903 -
accuracy: 0.5000
... (중략) ...
Epoch 20/20
1/1 [==============================] - 0s 997us/step - loss: 0.6596 -
accuracy: 1.0000
1/1 [==============================] - 0s 92ms/step - loss: 0.6579 -
accuracy: 1.0000
Accuracy: 1.0000

긍정적인 리뷰와 부정적인 리뷰의 학습이 진행되는 것을 확인할 수 있습니다.

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.