강의
참고 자료
- Andrew Ng’s and other ML tutorials
- Convolutional Neural Networks for Visual Recognition.
- Tensorflow
1 2 3 4 | import tensorflow as tf hello = tf.constant("hello tensor") sess = tf.Session() print(sess.run(hello)) | cs |
1 2 3 4 5 6 7 8 9 10 11 12 | import tensorflow as tf node1 = tf.constant(3.0, tf.float32) node2 = tf.constant(4.0) node3 = tf.add(node1,node2) print("node1 :",node1, "node2 : ", node2) print(" node3 : ", node3) // ==> In[5] 의 값이 나온다. sess = tf.Session() print("sess.run(node1, node2 :)",sess.run([node1, node2]) ) print("sess.run(node3): ", sess.run(node3)) // ==> In[6]의 값이 나온다. | cs |
1 2 3 4 5 6 7 | a = tf.placeholder(tf.float32) b = tf.placeholder(tf.float32) adder_node = a + b print(sess.run(adder_node, feed_dict = {a:3, b :4.5})) print(sess.run(adder_node, feed_dict={a: [1,3], b :[2,4]})) | cs |
1과 2를 더하고 3과 4를 더한다.