Created
June 5, 2023 14:10
-
-
Save MohanaRC/79dd88589244b9cfbd479e7f35561ed9 to your computer and use it in GitHub Desktop.
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
### Define the model, | |
def base_model(): | |
""" | |
Define the model architecture here | |
""" | |
inputs = tf.keras.Input(shape=(784,), name='digits') | |
x = tf.keras.layers.Dense(64, activation='relu', name='dense_1')(inputs) | |
x = tf.keras.layers.Dense(64, activation='relu', name='dense_2')(x) | |
outputs = tf.keras.layers.Dense(10, activation='softmax', name='predictions')(x) | |
model = tf.keras.Model(inputs=inputs, outputs=outputs) | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment