Last active
September 19, 2018 02:09
-
-
Save securetorobert/322f099cd6e4bb6ce05ccd954eb0cf3e to your computer and use it in GitHub Desktop.
Neural Networks with Keras on Boston Housing data
This file contains hidden or 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
#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