Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/EdisonLeeeee/SpikeGCL
/ functions
Functions
42 in github.com/EdisonLeeeee/SpikeGCL
⨍
Functions
42
◇
Types & classes
11
↓ 3 callers
Method
encode
(self, x, edge_index, edge_weight=None)
spikegcl/model.py:89
↓ 3 callers
Function
gaussian
Gaussian PDF with broadcasting.
spikegcl/neuron.py:17
↓ 3 callers
Method
reset
(self, reset_type: str = "subtract")
spikegcl/neuron.py:161
↓ 2 callers
Method
__init__
( self, v_threshold=1.0, v_reset=0.0, alpha=1.0, surrogate="triangle", detach=True, )
spikegcl/neuron.py:149
↓ 2 callers
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:37
↓ 2 callers
Method
decode
(self, spikes)
spikegcl/model.py:107
↓ 2 callers
Function
eval_acc
(model, x, y)
spikegcl/evaluate.py:16
↓ 1 callers
Function
creat_activation_layer
(activation)
spikegcl/model.py:9
↓ 1 callers
Function
creat_snn_layer
( alpha=2.0, surrogate="sigmoid", v_threshold=5e-3, snn="PLIF", )
spikegcl/model.py:20
↓ 1 callers
Function
get_dataset
(root, dataset, num_val=0.1, num_test=0.8)
spikegcl/dataset.py:7
↓ 1 callers
Method
loss
(self, postive, negative, margin=0.0)
spikegcl/model.py:133
↓ 1 callers
Function
node_cls_downstream_task_eval
(input_emb, data, num_classes, lr, wd, cls_epochs=100,
spikegcl/evaluate.py:67
↓ 1 callers
Function
read_parser
()
main.py:13
↓ 1 callers
Method
reset
(self, reset_type: str = "subtract")
spikegcl/neuron.py:203
↓ 1 callers
Method
reset_parameters
(self)
spikegcl/evaluate.py:34
↓ 1 callers
Function
tab_printer
Function to print the logs in a nice tabular format. Note ---- Package `Texttable` is required. Run `pip install Texttable` if was no
spikegcl/utils.py:4
↓ 1 callers
Function
test
(embeds, data, num_classes)
spikegcl/evaluate.py:6
↓ 1 callers
Function
train
()
main.py:154
↓ 1 callers
Function
train_cls
(cls, x, y, train_mask, val_mask, test_mask, lr=1e-2, weight_decay=1e-5, epochs=100)
spikegcl/evaluate.py:38
Method
__init__
( self, tau=1.0, v_threshold=1.0, v_reset=0.0, alpha=1.0,
spikegcl/neuron.py:184
Method
__init__
( self, tau=1.0, v_threshold=1.0, v_reset=0.0, alpha=1.0,
spikegcl/neuron.py:226
Method
__init__
(self, in_dim, out_dim)
spikegcl/evaluate.py:26
Method
__init__
( self, in_channels: int, hidden_channels: int, out_channels: int, T:
spikegcl/model.py:43
Function
arctanspike
(x, thresh=torch.tensor(1.0), alpha=torch.tensor(10.0))
spikegcl/neuron.py:135
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:52
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:69
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:88
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:102
Method
backward
(ctx, grad_output)
spikegcl/neuron.py:111
Method
forward
(ctx, x, alpha)
spikegcl/neuron.py:32
Method
forward
(self, dv)
spikegcl/neuron.py:168
Method
forward
(self, dv)
spikegcl/neuron.py:210
Method
forward
(self, dv)
spikegcl/neuron.py:253
Method
forward
(self, x)
spikegcl/evaluate.py:30
Method
forward
(self, x, edge_index, edge_weight=None)
spikegcl/model.py:113
Function
heaviside
(x: torch.Tensor)
spikegcl/neuron.py:13
Function
mgspike
(x, thresh=torch.tensor(1.0), alpha=torch.tensor(0.5))
spikegcl/neuron.py:123
Method
reset
(self, reset_type: str = "subtract")
spikegcl/neuron.py:246
Function
reset_net
(net: nn.Module, reset_type: str = "subtract")
spikegcl/neuron.py:7
Function
sigmoidspike
(x, thresh=torch.tensor(1.0), alpha=torch.tensor(1.0))
spikegcl/neuron.py:127
Function
superspike
(x, thresh=torch.tensor(1.0), alpha=torch.tensor(10.0))
spikegcl/neuron.py:119
Function
trianglespike
(x, thresh=torch.tensor(1.0), alpha=torch.tensor(1.0))
spikegcl/neuron.py:131