Update 快手用户活跃预测.ipynb

pull/2/head
benjas 5 years ago
parent 7acce390e6
commit e9b6ec32bd

@ -49225,6 +49225,17 @@
} }
], ],
"source": [ "source": [
"\"\"\"\n",
"tf.placeholder\n",
" 在神经网络构建graph的时候在模型中的占位此时没有把数据传入模型只会分配必要的内存。运行模型的时候通过feed_dict()函数向占位符喂入数据。\n",
" dtype数据类型。常用的是tf.float32,tf.float64等数值类型\n",
" shape数据形状。默认是None一维也可以是多维\n",
" name名称\n",
"tf.get_variable\n",
" 创建新的tensorflow变量\n",
" 第一列:名称\n",
" shape变量的形状\n",
"\"\"\"\n",
"n_features = 12\n", "n_features = 12\n",
"n_hu = 8\n", "n_hu = 8\n",
"with tf.variable_scope('train'): # tf.variable_scope用来指定变量的作用域\n", "with tf.variable_scope('train'): # tf.variable_scope用来指定变量的作用域\n",

Loading…
Cancel
Save