tensorflow
文章平均质量分 75
kobbbb
这个作者很懒,什么都没留下…
展开
-
tensorflow--Linear Regression
import tensorflow as tf import numpy import matplotlib.pyplot as plt rng = numpy.random # Parameters learning_rate = 0.01 training_epochs = 1000 display_step = 50 # Training Data train_X = numpy.asa...原创 2018-04-07 15:26:06 · 285 阅读 · 1 评论 -
tensorflow--Hello World
tensorflow内部原理可参考tensorflow原理import tensorflow as tf # Simple hello world using TensorFlow # Create a Constant op # The op is added as a node to the default graph. # # The value returned by the cons...原创 2018-04-02 20:57:58 · 169 阅读 · 0 评论 -
tensorflow--Logistics Regression
import tensorflow as tf # Import MNIST data from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/tmp/data/", one_hot=True) # one_hot是一种编码方式,在MNIST中,标签为2的编码为0...原创 2018-04-11 22:50:11 · 249 阅读 · 0 评论 -
tensorflow--Basic Operations
import tensorflow as tf # Basic constant operations # The value returned by the constructor represents the output # of the Constant op. a = tf.constant(2) b = tf.constant(3) # Launch the default gra...原创 2018-04-02 22:17:26 · 146 阅读 · 0 评论