Repository navigation
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (42 loc) · 1.47 KB
/
Copy pathconfig.py
File metadata and controls
47 lines (42 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
from transformers.configuration_utils import PretrainedConfig
class scGTNConfig(PretrainedConfig):
def __init__(
self,
x_size=2000,
y_size=7,
k=20,
max_inti_pos_index=100,
max_hop_dis_index=100,
hidden_size=128,
num_hidden_layers=4,
num_attention_heads=8,
intermediate_size=512,
hidden_act="gelu",
hidden_dropout_prob=0.1,
attention_probs_dropout_prob=0.1,
initializer_range=0.02,
layer_norm_eps=1e-12,
is_decoder=False,
output_attentions=False,
output_hidden_states=False,
**kwargs
):
super(scGTNConfig, self).__init__(**kwargs)
self.x_size = x_size
self.y_size = y_size
self.k = k
self.max_inti_pos_index = max_inti_pos_index
self.max_hop_dis_index = max_hop_dis_index
self.hidden_size = hidden_size
self.num_hidden_layers = num_hidden_layers
self.num_attention_heads = num_attention_heads
self.intermediate_size = intermediate_size
self.hidden_act = hidden_act
self.hidden_dropout_prob = hidden_dropout_prob
self.attention_probs_dropout_prob = attention_probs_dropout_prob
self.initializer_range = initializer_range
self.layer_norm_eps = layer_norm_eps
self.is_decoder = is_decoder
self.output_attentions = output_attentions
self.output_hidden_states = output_hidden_states