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 characters
    
  
  
    
  | dependencies: | |
| pre: | |
| - echo y | android update sdk --no-ui --all --filter "platform-tools, tools" | |
| - echo y | android update sdk --no-ui --all --filter "android-24, build-tools-25.0.2" | |
| - echo y | android update sdk --no-ui --all --filter "extra-android-m2repository" | |
| - echo y | android update sdk --no-ui --all --filter "extra-android-support" | 
  
    
      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 characters
    
  
  
    
  | test: | |
| override: | |
| - echo "test" | 
  
    
      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 characters
    
  
  
    
  | # SDK license is located at <$ANDROID_HOME/licenses/android-sdk-license> in local. | |
| dependencies: | |
| pre: | |
| - mkdir $ANDROID_HOME/licenses | |
| - echo <SDK license> >> $ANDROID_HOME/licenses/android-sdk-license | 
  
    
      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 characters
    
  
  
    
  | import tensorflow as tf | |
| num1 = tf.constant(1) | |
| num2 = tf.constant(2) | |
| num3 = tf.constant(3) | |
| sum = tf.add(num1, num2) | |
| total = tf.add(sum,num3) | |
| sess = tf.Session() | 
  
    
      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 characters
    
  
  
    
  | import tensorflow as tf | |
| var = tf.Variable(0, name="variable") | |
| con = tf.constant(1) | |
| sum = tf.add(var, con) | |
| update = tf.assign(var, sum) | |
| sess = tf.Session() | |
| print(sess.run(State)) # 0 | 
  
    
      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 characters
    
  
  
    
  | import tensorflow as tf | |
| x = tf.constant(1, name="x") | |
| y = tf.placeholder(tf.int32, name="y") | |
| sum = tf.add(x, y) | |
| with tf.Session() as sess: | |
| sess.run(tf.global_variables_initializer()) | |
| print(sess.run(sum, feed_dict={y:2})) | 
  
    
      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 characters
    
  
  
    
  | import tensorflow as tf | |
| import numpy as np | |
| x = tf.placeholder(tf.float32, [1, None]) | |
| y = tf.placeholder(tf.float32, [1, None]) | |
| dot = tf.matmul(x, y, transpose_b=True) | |
| x_abs = tf.sqrt(tf.matmul(x, x, transpose_b=True)) | |
| y_abs = tf.sqrt(tf.matmul(y, y, transpose_b=True)) | 
  
    
      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 characters
    
  
  
    
  | from sklearn.feature_extraction.text import CountVectorizer | |
| vectorizer = CountVectorizer() | |
| corpus = [ | |
| 'Steve Jobs biological father, Abdulfattah John Jandali.', | |
| 'was born into an Arab Muslim household.', | |
| 'Jobs moved back to the San Francisco Bay Area.', | |
| ] | 
  
    
      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 characters
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
  
    
      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 characters
    
  
  
    
  | plt.figure() | |
| plt.imshow(train_images[0]) | |
| plt.colorbar() | |
| plt.grid(False) | |
| plt.show() | 
OlderNewer