Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QiangAIResearcher/sahp_repo
/ types & classes
Types & classes
15 in github.com/QiangAIResearcher/sahp_repo
⨍
Functions
54
◇
Types & classes
15
↓ 5 callers
Class
MaskBatch
object for holding a batch of data with mask during training
train_functions/train_sahp.py:37
↓ 3 callers
Class
NoamOpt
Optim wrapper that implements rate.
utils/atten_optimizer.py:3
↓ 2 callers
Class
GELU
Paper Section 3.4, last paragraph notice that BERT used the GELU instead of RELU
models/utils/gelu.py:6
↓ 2 callers
Class
SublayerConnection
A residual connection followed by a layer norm. Note for code simplicity the norm is first as opposed to last.
models/utils/sublayer.py:5
↓ 1 callers
Class
Attention
Compute 'Scaled Dot Product Attention
models/attention/single.py:8
↓ 1 callers
Class
BiasedPositionalEmbedding
models/embedding/position.py:35
↓ 1 callers
Class
LayerNorm
Construct a layernorm module (See citation for details).
models/utils/layer_norm.py:5
↓ 1 callers
Class
MultiHeadedAttention
Take in models size and number of heads.
models/attention/multi_head.py:5
↓ 1 callers
Class
PositionalEmbedding
models/embedding/position.py:6
↓ 1 callers
Class
PositionwiseFeedForward
Implements FFN equation.
models/utils/feed_forward.py:5
↓ 1 callers
Class
SAHP
Generic N layer attentive Hawkes with masking
models/sahp.py:23
↓ 1 callers
Class
TypeEmbedding
models/embedding/event_type.py:4
Class
EventEmbedding
Event Embedding which is consisted with under features 1. TypeEmbedding : normal embedding matrix 2. PositionalEmbedding : adding
models/embedding/event_embedding.py:6
Class
SAHPGen
models/sahp.py:310
Class
SeqGenerator
models/base.py:7