A repository to save my machine learning notes.
本仓库可能不会持续更新
- 反向传播(back-propagation)
- 神经网络(neural networks)
- Softmax分类器
- word2vec
- 文本分类(IMDB数据集)
- 图像分类(Fashion MNIST数据集)
- Transformer模型笔记
- Transformer的PyTorch实现
- 面试准备
A repository to save my machine learning notes.
License: Apache License 2.0
A repository to save my machine learning notes.
本仓库可能不会持续更新
你好,可以针对pytorch1.3 更新下transformer pytorch代码么多谢
# Query Masking
`query_masks = tf.sign(tf.abs(tf.reduce_sum(queries, axis=-1))) # (N, T_q)
query_masks = tf.tile(query_masks, [num_heads, 1]) # (h*N, T_q)
query_masks = tf.tile(tf.expand_dims(query_masks, -1), [1, 1, tf.shape(keys)[1]]) # (h*N, T_q, T_k)
outputs *= query_masks # broadcasting. (N, T_q, C)`
你好,看了你的笔记受启发,但有个问题我想请教一下,你知道作者为啥要在 softmax 之后进行query mask吗?而不是在softmax之前 和 key masking 一起做完
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.