Skip to content

Instantly share code, notes, and snippets.

@risenW
Created August 17, 2020 13:23
Show Gist options
  • Save risenW/6d4ebb7e390ae099c879f9af977a76ae to your computer and use it in GitHub Desktop.
Save risenW/6d4ebb7e390ae099c879f9af977a76ae to your computer and use it in GitHub Desktop.
function get_model() {
const model = tf.sequential();
model.add(tf.layers.dense({ inputShape: [7], units: 124, activation: 'relu', kernelInitializer: 'leCunNormal' }));
model.add(tf.layers.dense({ units: 64, activation: 'relu' }));
model.add(tf.layers.dense({ units: 32, activation: 'relu' }));
model.add(tf.layers.dense({ units: 1, activation: "sigmoid" }))
model.summary();
return model
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment