Skip to content

Instantly share code, notes, and snippets.

@gallettilance
Created November 9, 2021 16:21
Show Gist options
  • Save gallettilance/822e250ad334328781d1a0125f8dbd33 to your computer and use it in GitHub Desktop.
Save gallettilance/822e250ad334328781d1a0125f8dbd33 to your computer and use it in GitHub Desktop.
from tensorflow import keras
model = keras.models.Sequential()
model.add(keras.layers.Dense(4, input_dim=1, activation='relu'))
model.add(keras.layers.Dense(1))
model.compile(loss="mean_squared_error")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment