Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. //Build neural network
  2.   model = tf.sequential();
  3.   model.add(tf.layers.dense({inputShape: [documents.length], units: 100}));
  4.   model.add(tf.layers.dense({units: 4}));
  5.   model.compile({loss: 'categoricalCrossentropy', optimizer: 'sgd'});
  6.  
  7.   model.fit(xs, ys, {epochs: 1000});
  8.    
  9. tf.layers.dense({inputShape: [xs.shape[0]], units: 100})
  10.    
  11. model.add(tf.layers.dense({inputShape: b, units: 100}));
  12.    
  13. model.add(tf.layers.dense({inputShape: [27, 48], units: 100}));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top