
tensorflow
DannyHau
这个作者很懒,什么都没留下…
展开
-
简单的Tensorflow实现NN
# coding:utf-8'''Student: Danny HouDate: 2017-06-14Content:简单的神经网络练习'''import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt# def add layer, it would be very convenient that原创 2017-06-21 20:10:19 · 866 阅读 · 0 评论 -
Tensorflow:tf.flags的用法
tf.flags是用来设置参数的,以便后面的程序用到,感觉跟变量的作用是一样的。# coding: utf-8import tensorflow as tf# define flagstf.flags.DEFINE_integer("age", 17, "age of user(default:20)")tf.flags.DEFINE_boolean("drink_allow", False,原创 2017-07-21 10:54:50 · 7559 阅读 · 0 评论 -
Tensorflow:深度神经网络DNN预测波士顿房价(boston house price)【一】
刚学习TF,尝试拿sklearn的datasets来做下练习。波士顿房价数据是个不错的选择。 python3.5 tensorflow 0.12把所有的包import进来# coding: utf-8import tensorflow as tffrom sklearn.datasets import load_bostonimport matplotlib.pyplot as pltf原创 2017-07-20 20:33:26 · 19303 阅读 · 11 评论 -
Tensorflow:深度神经网络DNN预测波士顿房价(boston house price)【二】
在Tensorflow:深度神经网络DNN预测波士顿房价(boston house price)【一】 中训练了网络还保存了模型。如何使用训练好的模型?请往下看。。import用到的包# coding: utf-8import tensorflow as tffrom sklearn.datasets import load_bostonfrom sklearn.preprocessing i原创 2017-07-22 09:31:24 · 8718 阅读 · 24 评论