Skip to content

Instantly share code, notes, and snippets.

@analyticsindiamagazine
Created November 8, 2019 04:33
Show Gist options
  • Save analyticsindiamagazine/8410081e948c4b089c5ce942dc7541ae to your computer and use it in GitHub Desktop.
Save analyticsindiamagazine/8410081e948c4b089c5ce942dc7541ae to your computer and use it in GitHub Desktop.
model = tf.keras.models.Sequential([
tf.keras.layers.InputLayer(input_shape = 26),
tf.keras.layers.Dense(100, activation=tf.nn.relu),
tf.keras.layers.Dropout(0.2),
tf.keras.layers.Dense(1),
])
model.compile(
optimizer=’adam’,
loss='mean_squared_logarithmic_error',
metrics=['RootMeanSquaredError'],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment