Created
July 12, 2019 15:23
-
-
Save georgeperry1/0b75749875f0c9e538342cbc570de49a 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
const model = tf.sequential(); | |
// Add layers to the model | |
model.add(tf.layers.dense({ | |
inputShape: [512], | |
activation: 'sigmoid', | |
units: 2, | |
})); | |
model.add(tf.layers.dense({ | |
inputShape: [2], | |
activation: 'sigmoid', | |
units: 2, | |
})); | |
model.add(tf.layers.dense({ | |
inputShape: [2], | |
activation: 'sigmoid', | |
units: 2, | |
})); | |
// Compile the model | |
model.compile({ | |
loss: 'meanSquaredError', | |
optimizer: tf.train.adam(.06), // This is a standard compile config | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment