목록2019/03/24 (2)
MJay
Python Basicsprint ('Alice' * 5) 'AliceAliceAliceAliceAlice'Flow Controlspam = ['cat', 'bat', 'rat', 'elephant'] spam[0:4] ['cat', 'bat', 'rat', 'elephant'] spam[1:3] ['bat', 'rat'] spam[0:-1] ['cat', 'bat', 'rat']Changing Values in a List with Indexesspam = ['cat', 'bat', 'rat', 'elephant'] spam[1] = 'aardvark' spam ['cat', 'aardvark', 'rat', 'elephant'] spam[2] = spam[1] spam ['cat', 'aardvark..
Graphs are sets of connected nodes - verticesThe connections are referred to as edgeseach node is an operation with possible inputs that can supply some outputIn [1]:import tensorflow as tf In [2]:n1 = tf.constant(1) In [3]:n2 = tf.constant(2) In [4]:n3 = n1 + n2 In [5]:with tf.Session() as sess: result = sess.run(n3) In [6]:print (result) 3 n3 은 여기서 뭘까 -> Tensor 이다In [7]:print (tf.get_default_g..