TensorFlow2.0
资深糖分大叔
自律给人自由
展开
-
TensorFlow 2.0 笔记(一)—— 基础操作
Tensor数据类型listnp.arraytf.TensorTensorscalar: 1.01vector: [1.1], [1.1, 2.2, …]matrix: [[1.1, 2.2], [3.3, 4.4], [5.5, 6.6]]tensor: rank > 2变量类型:科学计算库,以支持计算为第一要素intfloatdoublebool...原创 2019-08-19 11:26:41 · 431 阅读 · 0 评论 -
TensorFlow 2.0 笔记(八)—— 循环神经网络
x = tf.random.normal([4, 80, 100])xt0 = x[:, 0, :]cell = tf.keras.layers.SimpleRNNCell(64)out, xt1 = cell(xt0, [tf.zeros([4, 64])])out.shape, xt1[0].shapeid(out), id(xt1[0])cell.trainable_variab...原创 2019-10-01 11:33:50 · 1602 阅读 · 6 评论 -
TensorFlow 2.0 笔记(七)—— 卷积神经网络
Feature maps原创 2019-09-27 17:52:33 · 710 阅读 · 0 评论 -
TensorFlow 2.0 笔记(六)—— 过拟合与欠拟合
Mismatch: ground-truth VS estimatedmodel capacityy=β0+β1x+β2x2+β3x3+...+βnxn+ϵ.y=\beta_0+\beta_1x+\beta_2x^2+\beta_3x^3+...+\beta_nx^n+\epsilon.y=β0+β1x+β2x2+β3x3+...+βnxn+ϵ.under-fitting:...原创 2019-09-27 11:57:53 · 1196 阅读 · 0 评论 -
TensorFlow 2.0 笔记(五)—— Keras高层API
Keras自定义网络原创 2019-09-26 16:26:21 · 464 阅读 · 0 评论 -
TensorFlow 2.0 笔记(四)—— 随机梯度下降
随机梯度下降原创 2019-09-25 18:59:42 · 436 阅读 · 0 评论 -
TensorFlow 2.0 笔记(三)—— 神经网络与全连接层
全连接层自动推导输入数据的格式x = tf.random.normal([4, 784])net = tf.keras.layers.Dense(512)out = net(x)out.shapenet.kernel.shape,net.bias.shapenet.build()可多次build预先设置输入格式,如果不匹配,不能输入net = tf.keras.lay...原创 2019-09-24 18:33:20 · 1192 阅读 · 0 评论 -
TensorFlow 2.0 笔记(二)—— 高阶操作
合并与分割数据统计张量排序填充与复制张量限幅高阶操作原创 2019-08-20 11:43:49 · 323 阅读 · 0 评论 -
TensorFlow 2.0 笔记(0)—— GPU环境安装
pip install -U tensorflow-gpu numpy matplotlib pillow pandas -i https://pypi.tuna.tsinghua.edu.cn/simple原创 2019-10-01 22:58:01 · 228 阅读 · 0 评论