![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow与神经网络
LittleLuiLui
只是一只爱着代码的猿猿
展开
-
TensorFlow与神经网络_学习记录1(get_variable函数 与 initialize_all_variables函数)
环境 Python_3.5.2 TensorFlow_1.2.1 import tensorflow as tf g1 = tf.Graph() with g1.as_default(): v = tf.get_variable( "v", shape=[1], initializer=tf.zeros_initializer ) g2 = tf.Graph原创 2018-01-27 10:34:04 · 74 阅读 · 0 评论 -
TensorFlow与神经网络_学习记录2(select函数)
环境 Python_3.5.2 TensorFlow_1.2.1 import tensorflow as tf v1 = tf.constant([1.0, 2.0, 3.0, 4.0]) v2 = tf.constant([4.0, 3.0, 2.0, 1.0]) sess = tf.InteractiveSession() print(tf.greater(v1, v2).eval原创 2018-01-27 10:41:31 · 79 阅读 · 0 评论 -
深度学习与神经网络(一)区别期望风险与经验风险
期望风险:全局的风险,未知的,不可获得的 经验风险:局部的风险,克制的,可获得的 经验风险可以通过训练集获得,期望风险是理想化的全局概念。 期望风险可以通过经验风险近似; 机器学习问题转化为最优化经验风险的问题。...原创 2018-09-14 09:21:34 · 129 阅读 · 0 评论