TensorFlow学习程序(三):构造一个简单的神经网络并通过Matplotlib可视化
import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt #使输出数据可视化def add_layer(inputs, in_size, out_size, activation_function = None): #构造神经网络层 with tf.name_scope('layer'): ...