-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.py
More file actions
25 lines (21 loc) · 692 Bytes
/
Copy pathparams.py
File metadata and controls
25 lines (21 loc) · 692 Bytes
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
class params:
def __init__(self,mode="normal") -> None:
self.mode = mode
self.first_fire_neurons_num = 400
self.alpha = 10
if self.mode == 'normal':
self.threshold = 30
self.decay = 0.6
self.reset = -40
elif self.mode == 'abnormal_decay':
self.threshold = 30
self.decay = 0.2
self.reset = -40
elif self.mode == 'abnormal_threshold':
self.threshold = 10
self.decay = 0.6
self.reset = -40
elif self.mode == 'abnormal_reset':
self.threshold = 30
self.decay = 0.6
self.reset = -20