← all repositories

CyberZHG/keras-self-attention

A Keras library providing self-attention layers for processing sequential data in neural networks.

657 stars Python ML Frameworks
keras-self-attention
Velocity · 7d
+0.2
★ / day
Trend
steady
star history

This repository implements self-attention mechanisms as Keras layers for processing sequential data. It provides SeqSelfAttention layers that can be added to neural network architectures to consider context across all timestamps when computing relevance. The library integrates with standard Keras components like Embedding, LSTM, and Bidirectional layers, enabling attention-enhanced sequence models for tasks like text classification and sequence labeling.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.