Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model = keras.Sequential([
- keras.layers.Flatten(input_shape=(28, 28)),
- keras.layers.Dense(1),
- keras.layers.Dense(1),
- keras.layers.Dense(10, activation=tf.nn.softmax)])
- model.compile(optimizer= 'sgd',
- loss='sparse_categorical_crossentropy',
- metrics=['acc'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement