- 博客(9)
- 资源 (6)
- 收藏
- 关注
转载 Keras关于LSTM的units参数,还是不理解?
LSTM(units,input_shape(3,1)),这里的units指的是cell的个数么?如果是,按照LSTM原理这些cell之间应该是无连接的,那units的多少其意义是什么呢,是不是相当于MLP里面对应隐层的神经元个数,只是为了扩展系统的输出能力?作者:lonlon ago链接:https://www.zhihu.com/question/64470274/answer/2563...
2018-03-06 00:39:20 25114 9
原创 keras 指定GPU
计数下标从1开始例:CUDA_VISIBLE_DEVICES=2 python3 predict_3.pyHow can I run a Keras model on multiple GPUs?We recommend doing so using the TensorFlow backend. There are two ways to run a single model on multip...
2018-03-04 23:08:43 1554
转载 keras 对于大数据的训练,无法一次性载入内存,使用迭代器
转处:http://blog.csdn.net/lujiandong1/article/details/54869170说明:我是在keras的官方demo上进行修改https://github.com/fchollet/keras/blob/master/examples/imdb_cnn.py1、几点说明,从文件中读入数据,会降低GPU的使用率,如果能够直接将数据载入内存,GPU的使用率会比较...
2018-03-04 00:08:59 6211 1
转载 keras 关于 dropout 的一点讨论
dropout in training and testing #5357 wenouyang commented on 11 Feb 2017In this link, devinplatt gives the following way to include dropout in training,model = Sequential()model.add(Dropout(0.5, inpu...
2018-03-26 15:08:22 6563
转载 model fine tune & get output by layer
从VGG19的任意中间层中抽取特征from keras.applications.vgg19 import VGG19from keras.preprocessing import imagefrom keras.applications.vgg19 import preprocess_inputfrom keras.models import Modelimport numpy as npbas...
2018-03-21 17:51:27 530
原创 Keras 常用callback function
TensorBoard通过结合TF的TensorBoard将网络结构以及运行时状态可视化from keras.callbacks import TensorBoardmodel.fit([encoder_input_data, decoder_input_data], decoder_target_data, batch_size=batch_size, epo...
2018-03-21 15:32:38 2099
转载 Keras同时用多张显卡训练网络
References.官方文档:multi_gpu_model以及Googlehttps://www.jianshu.com/p/db0ba022936f0. 误区目前Keras是支持了多个GPU同时训练网络,非常容易,但是靠以下这个代码是不行的。os.environ["CUDA_VISIBLE_DEVICES"] = "1,2"当你监视GPU的使用情况(nvidia-smi -l 1)的时候会...
2018-03-16 10:35:11 1496
转载 shell 终端字符颜色
[plain] view plain copy终端的字符颜色是用转义序列控制的,是文本模式下的系统显示功能,和具体的语言无关,shell,python,perl等均可以调用。 转义序列是以 ESC 开头,可以用 \033 完成相同的工作(ESC 的 ASCII 码用十进制表示就是 27, = 用八进制表示的 33)。 \033[显示方式;前景色;背景色m 显示方式:0(默认值)...
2018-03-15 20:20:14 648
转载 十分钟教程:用Keras实现seq2seq学习
原文:A ten-minute introduction to sequence-to-sequence learning in Keras 作者:Francois Chollet 译者:雁惊寒摘要:序列到序列学习(seq2seq)是一种把序列从一个域(例如英语中的句子)转换为另一个域中的序列(例如把相同的句子翻译成法语)的模型训练方法。目前有多种方法可以用来处理这个任务,可以使用RNN,也可以使...
2018-03-03 00:39:59 1667
httpclient tutorial httpclient 指南
2018-03-08
mask rcnn paper
2018-03-07
Applying Deep Learning To Answer Selection
2018-03-07
Learning Phrase Representations using RNN Encoder–Decoder
2018-03-07
BPTT BackPropagation Through Time.pdf
2018-03-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人