- 博客(8)
- 资源 (69)
- 收藏
- 关注
转载 The difference between Softmax and Softmax-Loss
转载来源:The difference between Softmax and Softmax-LossThe softmax loss layer computes the multinomial logistic loss of the softmax of its inputs. It’s conceptually identical to a softmax layer followe...
2018-11-30 09:26:03 912 1
原创 PyTorch之前向传播函数forward
神经网络的典型处理如下所示:1. 定义可学习参数的网络结构(堆叠各层和层的设计);2. 数据集输入;3. 对输入进行处理(由定义的网络层进行处理),主要体现在网络的前向传播;4. 计算loss ,由Loss层计算;5. 反向传播求梯度;6. 根据梯度改变参数值,最简单的实现方式(SGD)为: weight = weight - learning_rate * gradient...
2018-11-14 11:37:40 113645 24
原创 Python之np.squeeze()
import matplotlib.pyplot as pltimport numpy as npx = np.linspace(0, 100, 50)y = np.random.randn(1, 50)plt.plot(x, y)如上代码报错为:“ValueError: x and y must have same first dimension, but have shapes...
2018-11-14 09:23:08 5411
原创 Keras之自定义损失(loss)函数
在Keras中可以自定义损失函数,在自定义损失函数的过程中需要注意的一点是,损失函数的参数形式,这一点在Keras中是固定的,须如下形式:def my_loss(y_true, y_pred):# y_true: True labels. TensorFlow/Theano tensor# y_pred: Predictions. TensorFlow/Theano tensor of...
2018-11-13 16:13:49 7545 4
原创 深度学习框架之Keras
一. Keras网络结构二. Keras网络配置三. Keras预处理功能 参考来源:1. Keras 学习之旅(一)
2018-11-13 15:55:49 1675
原创 Keras之fit_generator与train_on_batch
关于Keras中,当数据比较大时,不能全部载入内存,在训练的时候就需要利用train_on_batch或fit_generator进行训练了。两者均是利用生成器,每次载入一个batch-size的数据进行训练。那么fit_generator与train_on_batch该用哪一个呢?train_on_batch(self, x, y, class_weight=None, sample_wei...
2018-11-13 15:35:44 14740 2
原创 Keras之model.compile与train_on_batch和TensorBoard for train_on_batch
在利用TensorFlow的TensorBoard对train_on_batch的输出进行画图时发现了一些问题。下面对train_on_batch的输出进行讲解。在讲解train_on_batch之前,先看一下Keras的model.compile函数。下面利用Keras版Faster R-CNN代码进行讲解。示例代码如下:# define the RPN, built on the bas...
2018-11-10 17:40:12 11570 9
原创 you must feed a value for placeholder tensor 'input_2' with dtype float and shape [?,?,6]
如下代码:from keras.layers import Inputfrom keras.models import Model...img_input = Input(shape=input_shape_img)roi_input = Input(shape=(None, 6))...model_classifier = Model([img_input, roi_i...
2018-11-06 15:54:42 8261
TensorFlow Machine Learning Cookbook【2017,完美PDF】
2017-08-16
TensorFlow for Machine Intelligence(2016.07).A4
2017-08-16
LearningToCompare_FSL.rar
2019-12-01
Professional Visual Studio 2013.pdf+VS2015 CookBook.pdf英文原版-高清
2017-10-30
RBM受限玻尔兹曼机
2017-10-10
Neural Networks_ Tricks of the Trade_ Second Edition
2017-08-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人