Created
July 2, 2022 09:34
-
-
Save Bennykillua/b07fa6616fd0106547a21c36aed1839c to your computer and use it in GitHub Desktop.
Keras Open Source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from tensorflow import keras | |
#load dataset | |
mnist = tf.keras.datasets.mnist | |
#Build a machine learning model | |
model = tf.keras.models.Sequential([ | |
tf.keras.layers.Flatten(input_shape=(28, 28)), | |
tf.keras.layers.Dense(100, activation='relu'), | |
tf.keras.layers.Dropout(0.5), | |
tf.keras.layers.Dense(10) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment