摘要: 做机器学习的同志们应该对这个都不陌生,这里简单举个例子。一般来说,使用softmax函数来将神经元输出的数值映射到0到1之间,这样神经元输出的值就变为了一个概率值。 公式和例子如下图 公式和例子如下图 阅读全文
posted @ 2018-11-14 22:16 水木清扬 阅读(245) 评论(0) 推荐(0)
摘要: 结果 可以看到求得的k和b非常接近于我们定义的k值和b值。 阅读全文
posted @ 2018-11-14 22:15 水木清扬 阅读(168) 评论(0) 推荐(0)
摘要: 自己搭建神经网络求解非线性回归系数 代码 #coding:utf-8 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt #使用numpy 生成200个随机点 x_data = np.linspace( 阅读全文
posted @ 2018-11-14 22:15 水木清扬 阅读(392) 评论(0) 推荐(0)
摘要: #coding:utf-8 import tensorflow as tf #Fetch input1 = tf.constant(3.0) input2 = tf.constant(1.0) input3 = tf.constant(5.0) add = tf.add(input1,input2) 阅读全文
posted @ 2018-11-14 22:14 水木清扬 阅读(256) 评论(0) 推荐(0)
摘要: #coding:utf-8 import tensorflow as tf x = tf.Variable([1,2]) a = tf.constant([3,3]) #增加一个减法op sub = tf.subtract(x,a) #增加一个加法op add = tf.add(x,sub) #有变 阅读全文
posted @ 2018-11-14 22:13 水木清扬 阅读(163) 评论(0) 推荐(0)
摘要: 参考博客:https://www.cnblogs.com/cnugis/p/7635128.html视频链接:https://www.bilibili.com/video/av20542427?from=search&seid=3218324014806772997 Tensorflow作为目前最热 阅读全文
posted @ 2018-11-14 22:12 水木清扬 阅读(184) 评论(0) 推荐(0)