摘要:
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... 阅读全文
摘要:
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. ... 阅读全文