Spaces:
Sleeping
Sleeping
Update modelutil.py
Browse files- modelutil.py +3 -3
modelutil.py
CHANGED
@@ -2,11 +2,11 @@ import tensorflow as tf
|
|
2 |
|
3 |
def create_model():
|
4 |
|
5 |
-
LAYERS = [
|
6 |
-
tf.keras.layers.Conv2D(64, (3, 3), activation='relu', name="convlayer2"),
|
7 |
tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
|
8 |
tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
|
9 |
-
tf.keras.layers.Dense(
|
|
|
10 |
tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]
|
11 |
|
12 |
model = tf.keras.models.Sequential(LAYERS)
|
|
|
2 |
|
3 |
def create_model():
|
4 |
|
5 |
+
LAYERS = [
|
|
|
6 |
tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
|
7 |
tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
|
8 |
+
tf.keras.layers.Dense(256, activation='relu', name="hiddenlayer1"),
|
9 |
+
tf.keras.layers.Dense(128, activation='relu', name="hiddenlayer2"),
|
10 |
tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]
|
11 |
|
12 |
model = tf.keras.models.Sequential(LAYERS)
|