Tensorflow 入门(一):用平面拟合三维数据
# 用一个平面拟合三位数据
x_data = np.float32(np.random.rand(2, 100))
y_data = np.dot([0.100, 0.200], x_data) + 0.300
# 构造线性模型
b = tf.Variable(tf.zeros([1]))
W = tf.Variable(tf.random_uniform([1, 2], -1.0, 1.0)...
原创
2019-04-29 11:37:55 ·
2739 阅读 ·
0 评论