Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgai91/pytorch-acnn-model
/ functions
Functions
16 in github.com/dgai91/pytorch-acnn-model
⨍
Functions
16
◇
Types & classes
3
↓ 4 callers
Function
pos
map the relative distance between [0, 123)
attention/utils.py:65
↓ 2 callers
Function
gen_dataloader
(data, word_dict, arg)
acnn_train.py:11
↓ 2 callers
Function
load_data
(file, NR)
attention/utils.py:8
↓ 2 callers
Function
model_run
(opt, dataloader, loss_func, model, all_y, optimizer=None)
acnn_train.py:56
↓ 1 callers
Method
__init__
(self, opt, embedding)
attention/pyt_acnn.py:7
↓ 1 callers
Method
attentive_pooling
(self, R_star)
attention/pyt_acnn.py:59
↓ 1 callers
Function
build_dict
(sentences)
attention/utils.py:25
↓ 1 callers
Function
data_unpack
(cat_data, N)
acnn_train.py:24
↓ 1 callers
Method
input_attention
(self, input_tuple, is_training=True)
attention/pyt_acnn.py:27
↓ 1 callers
Function
load_embedding
(emb_file, emb_vocab, word_dict)
attention/utils.py:37
↓ 1 callers
Function
prediction
(wo, rel_weight, y, all_y)
acnn_train.py:37
↓ 1 callers
Function
vectorize
(data, word_dict, max_len)
attention/utils.py:77
Method
__init__
(self, nr, margin=1)
attention/pyt_acnn.py:76
Method
forward
(self, input_tuple, is_training=True)
attention/pyt_acnn.py:67
Method
forward
(self, wo, rel_weight, in_y, all_y)
attention/pyt_acnn.py:81
Function
parse
user can update the default hyperparamter
attention/config.py:26