摘要: import matplotlib.pyplot as plt import numpy as np import tensorflow as tf sess=tf.Session() x_vals=np.linspace(0,10,100) y_vals=x_vals+np.random.normal(0,1,100) #装换成矩阵 reshape成 (None,1) x_vals_co... 阅读全文
posted @ 2018-06-11 15:29 绯叶阿卡丽 阅读(266) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np from sklearn import datasets import tensorflow as tf sess=tf.Session() iris=datasets.load_iris() #print(iris) target=np.array([1. if x==0 else 0. ... 阅读全文
posted @ 2018-06-11 15:21 绯叶阿卡丽 阅读(216) 评论(0) 推荐(0) 编辑