Skip to content

Commit

Permalink
Added Dropout Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
silverlightning926 committed Jun 12, 2024
1 parent 2fb6f4b commit dab8599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from keras.api.models import Sequential
from keras.api.layers import Input, Dense, Conv2D, MaxPooling2D, Flatten
from keras.api.layers import Input, Dense, Conv2D, MaxPooling2D, Flatten, Dropout
from keras.api.models import load_model

import os
Expand All @@ -26,6 +26,7 @@ def _build_model():
Conv2D(64, (3, 3), activation='relu'),
Flatten(),
Dense(64, activation='relu'),
Dropout(0.2),
Dense(27, activation='softmax')
])

Expand Down

0 comments on commit dab8599

Please sign in to comment.