Created
March 30, 2018 18:01
-
-
Save sararob/4839f5b65e7076a090fed9efadb830be to your computer and use it in GitHub Desktop.
Revisions
-
sararob created this gist
Mar 30, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ import * as tf from ‘@tensorflow/tfjs’; const model = tf.sequential(); model.add(tf.layers.dense({inputShape: [4], units: 100})); model.add(tf.layers.dense({units: 4})); model.compile({loss: ‘categoricalCrossentropy’, optimizer: ‘sgd’});