Skip to main content

funkeras

my blog

attention, transformer, bert 等都是从大神CyberZHG学习来的, 主要是因为想学习源码并进行一些标注,所以进行了一些翻译、标注和整合

yolo 参考 keras-yolo3, keras-yolo3

Attention

ScaledDotProductAttention

参考论文

$$\text{Attention}(Q, K, V) = \text{softmax}(\frac{Q K^T}{\sqrt{d_k}}) V$$

SeqSelfAttention

参考论文

multiplicative

$$e_{t, t'} = x_t^T W_a x_{t'} + b_a$$

$$a_{t} = \text{softmax}(e_t)$$

$$l_t = \sum_{t'} a_{t, t'} x_{t'}$$

additive

$$h_{t, t'} = \tanh(x_t^T W_t + x_{t'}^T W_x + b_h)$$

$$e_{t, t'} = W_a h_{t, t'} + b_a$$

$$a_{t} = \text{softmax}(e_t)$$

$$l_t = \sum_{t'} a_{t, t'} x_{t'}$$

SeqWeightedAttention

参考论文

$$Y = \text{softmax}(XW + b) X$$

MultiHeadAttention

参考论文

Metadata

Release files for funkeras 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for funkeras 0.9.0
File Size Uploaded
funkeras-0.9.0.tar.gz 32.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for funkeras 0.9.0
File Interpreter ABI Platform
funkeras-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.4 MB

Release files / funkeras-0.9.0.tar.gz

Download URL funkeras-0.9.0.tar.gz
Size 32.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c7ba2e17845619155c96129e45bca3a858a9085ad5e3af353b4d9348c786adf3
BLAKE2b-256 checksum
How to use checksums
0751d40eb6df93db995709248406a7f54a7fd327a387d8b4826d9d76f462aba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / funkeras-0.9.0-py3-none-any.whl

Download URL funkeras-0.9.0-py3-none-any.whl
Size 5.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ffaa796ef2f6f7f8712a943b48859f04ce5e49656c63431c43dae2eea9ce6206
BLAKE2b-256 checksum
How to use checksums
ac6ec36fd77368ea88725bac2560b852f2b91d4d78d524f057d8ae71bf8a182e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.12

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page