# coding:utf-8
'''
Student: Danny Hou
Date: 2017-06-14
Content:简单的神经网络练习
'''
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# def add layer, it would be very convenient that you build a CNN when adding a layer
def add_layer(inputs,in_size,out_size,activation_function=None):
Weights = tf.Variable(tf.random_normal([in_size,out_size])) # 初始化weight,为什么不用0?据说是效果不好。
biases = tf.Variable(t
简单的Tensorflow实现NN
最新推荐文章于 2022-11-06 22:14:27 发布
这篇博客记录了使用Tensorflow实现神经网络的过程,通过展示训练过程中损失(loss)逐渐下降的详细数值,展现了模型的拟合效果。
摘要由CSDN通过智能技术生成