Last active
March 16, 2019 14:15
-
-
Save NMZivkovic/58bd008d5248558cdf7689ea1606efe8 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
/** | |
* @desc creates tensorflow graph | |
* @return model | |
*/ | |
function createModelFunction() { | |
const model = tf.sequential(); | |
model.add(tf.layers.dense({inputShape: [11], units: 50, useBias: true, activation: 'relu'})); | |
model.add(tf.layers.dense({units: 30, useBias: true, activation: 'tanh'})); | |
model.add(tf.layers.dense({units: 20, useBias: true, activation: 'relu'})); | |
model.add(tf.layers.dense({units: 10, useBias: true, activation: 'softmax'})); | |
return model; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment