-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameters.py
More file actions
35 lines (27 loc) · 907 Bytes
/
parameters.py
File metadata and controls
35 lines (27 loc) · 907 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
26
27
28
29
30
31
32
33
34
35
################################################ README #########################################################
# This file contains all the parameters of the network.
#################################################################################################################
class param:
scale = 1
T = 150
t_back = -20
t_fore = 20
pixel_x = 28
#pixel_x = 16
m = pixel_x*pixel_x #Number of neurons in first layer
n = 2 #Number of neurons in second layer
Pref = 0.
Prest = 0.
Pmin = -5.0*scale
Pth = 20.0*scale
D = 0.75*scale
w_max = 5.0*scale
w_min = -1.2*scale
sigma = 0.02 #0.02
A_plus = 0.8 # time difference is positive i.e negative reinforcement
A_minus = 0.3 # 0.01 # time difference is negative i.e positive reinforcement
tau_plus = 10
tau_minus = 10
epoch = 20
fr_bits = 12
int_bits = 12