Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Last active September 19, 2018 02:09
Show Gist options
  • Save securetorobert/322f099cd6e4bb6ce05ccd954eb0cf3e to your computer and use it in GitHub Desktop.
Save securetorobert/322f099cd6e4bb6ce05ccd954eb0cf3e to your computer and use it in GitHub Desktop.
Neural Networks with Keras on Boston Housing data
#imports
import tensorflow as tf
from tensorflow import keras
from keras import Sequential
from keral.layers import Dense
#build our model
model = Sequential()
model.add(Dense(50, activation='relu'))
model.add(Dense(100, activation='relu'))
model.add(Dense(50, activation='relu'))
model.add(Dense(1))
model.compile(loss='mean_squared_error', optimizer='adam')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment