摘要: 一、关于numpy的random的使用: 1.rand随机值 2.randn返回样本具有标准正太分布 3.randint返回随机整数 4.random([size])返回随机浮点数位于半开区间[0.0,1.0) 5.choice从给定的数字中生成一个随机样本 6.shuffle(x)打乱x的顺序 更 阅读全文
posted @ 2017-07-23 16:41 故笙 阅读(1316) 评论(0) 推荐(0) 编辑
摘要: #TensorFlow实现Logistic 回归 import tensorflow as tf #导入手写数字集 from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/tmp/data/", one_hot=True) #学习参数 learning_ra... 阅读全文
posted @ 2017-07-23 14:50 故笙 阅读(2023) 评论(0) 推荐(0) 编辑
摘要: TensorFlow实现线性回归 公众号:一个有趣的机器学习社区 (分享大量AI,大数据资料) 阅读全文
posted @ 2017-07-23 12:17 故笙 阅读(1558) 评论(0) 推荐(0) 编辑