alex_bn_lee

导航

上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 247 下一页

2020年12月28日 #

【510】NLP实战系列(七)—— 进阶版(dropout/stacking/BiLSTM)

摘要: 参考:Bidirectional 层 进阶版包含以下技术: Recurrent dropout(循环 dropout), a specific, built-in way to use dropout to fight overfitting in recurrent layers. 使用 drop 阅读全文

posted @ 2020-12-28 10:27 McDelfino 阅读(369) 评论(0) 推荐(0)

2020年12月27日 #

【509】NLP实战系列(六)—— 通过 LSTM 来做分类

摘要: 参考:LSTM层 1. 语法 keras.layers.recurrent.LSTM(units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_un 阅读全文

posted @ 2020-12-27 16:52 McDelfino 阅读(358) 评论(0) 推荐(0)

【508】NLP实战系列(五)—— 通过 SimpleRNN 来做分类

摘要: 参考:SimpleRNN层 1. 语法 keras.layers.GRU(units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_uniform' 阅读全文

posted @ 2020-12-27 16:27 McDelfino 阅读(263) 评论(0) 推荐(0)

【507】NLP实战系列(四)—— 实现一个最简单的NN

摘要: 完成前三节的基础准备,就可以先撸个最简单的 NN 网络。 1. 获取训练数据与测试数据 按照如下代码实现,具体说明可以参见第三部分。 from keras.datasets import imdb from keras import preprocessing # Number of words t 阅读全文

posted @ 2020-12-27 13:44 McDelfino 阅读(186) 评论(0) 推荐(0)

【506】NLP实战系列(三)—— keras 读取及处理 IMDB 数据库

摘要: 利用 IMDB 数据进行 Sentiment Analysis。 通过 keras.datasets 里面下载,注意下载的结构,并进行预处理。 from keras.datasets import imdb from keras import preprocessing # Number of wo 阅读全文

posted @ 2020-12-27 12:33 McDelfino 阅读(373) 评论(0) 推荐(0)

上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 247 下一页