Keras Utility&Layer Collection.

kulc的Python项目详细描述


Keras实用程序和层集合[WIP]

主框架中缺少的路缘石自定义层的集合。这些层可能有助于使用keras复制当前最先进的深度学习论文。

应用程序

使用此库,以下研究论文已在Keras中重新实现:

实现层概述

目前,Keras Layer Collection提供以下层/功能:

缩放点积注意

Implementation as described in Attention Is All You Need。通过比较查询Q和键K,对值V执行非线性转换。下图摘自上述论文。

多头注意

Implementation as described in Attention Is All You Need。这基本上只是一堆aScaled Dot-Product Attention块,其输出与线性转换相结合。下图摘自上述论文。

层规范化

Sequencewise Attention

This layer applies various attention transformations on data. It needs a time-series of queries and a time-series of values to calculate the attention and the final linear transformation to obtain the output. This is a faster version of the general attention technique. It is similar to the ^{} method described in Effective Approaches to Attention-based Neural Machine Translation

注意包装纸

The idea of the implementation is based on the paper Effective Approaches to Attention-based Neural Machine Translation。这个层可以包裹在Keras中的任何RNN周围。它计算前一个输出步骤和所有输入步骤之间的注意力向量。这样,就为RNN构造了一个新的基于注意力的输入。这个输入最终被输入到RNN。这种技术类似于本文中描述的input-feeding方法。下图摘自上述论文。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring启动启用HTTPS   actionscript 3 java中的这个[“var”+“name”]   java只匹配给定集合中一个字符的一个匹配项   java Hibernate:防止角色表中出现多个相同的条目   javajersey+Spring注入servlet请求   java HtmlEditor javafx失去焦点   java Apache Wicket AjaxRequestTarget ListView组件未刷新或更新   mysql java。无法将lang.String转换为java。sql。时间戳   java将巨大的整数文件(在一行中)拆分为具有内存限制的已排序块   安卓如何完全关闭proguard?   安装Eclipse和Android SDK后的java“无AVD可用”消息   java动态显示图像视图   java在Spring中还有哪些WebsocketClient实现?   java Glassfish需要很长时间才能重新启动   使用Java简单串行连接器将pc与arduino连接   java如何在camel文件组件配置中结合readLockCheckInterval和maxMessagesPerPoll?   单击Android时的java预览图像   java如何将字节数组转换为ByteArrayOutputStream