Logo ROOT   6.14/05
Reference Guide
test.py
Go to the documentation of this file.
1 from math import exp
2 
3 from math import tanh
4 
5 class test:
6  def value(self,index,in0,in1,in2):
7  self.input0 = (in0 - 0.459987)/0.0509152
8  self.input1 = (in1 - 0.188581)/0.0656804
9  self.input2 = (in2 - 134.719)/16.5033
10  if index==0: return self.neuron0x2ff72b0();
11  return 0.
12  def neuron0x27555e0(self):
13  return self.input0
14  def neuron0x2755920(self):
15  return self.input1
16  def neuron0x2ff51e0(self):
17  return self.input2
18  def neuron0x2ff5650(self):
19  input = -0.427944
20  input = input + self.synapse0x2755ce0()
21  input = input + self.synapse0x2ff5900()
22  input = input + self.synapse0x2ff5940()
23  if input<-709. : return 0
24  return ((1/(1+exp(-input)))*1)+0
25  def neuron0x3005990(self):
26  input = -0.0888624
27  input = input + self.synapse0x2ff5980()
28  input = input + self.synapse0x3005cd0()
29  input = input + self.synapse0x3005d10()
30  if input<-709. : return 0
31  return ((1/(1+exp(-input)))*1)+0
32  def neuron0x3005d50(self):
33  input = 0.189146
34  input = input + self.synapse0x3006090()
35  input = input + self.synapse0x30060d0()
36  input = input + self.synapse0x3006110()
37  if input<-709. : return 0
38  return ((1/(1+exp(-input)))*1)+0
39  def neuron0x3006150(self):
40  input = -0.114887
41  input = input + self.synapse0x3006370()
42  input = input + self.synapse0x2ff6020()
43  input = input + self.synapse0x2ff6060()
44  if input<-709. : return 0
45  return ((1/(1+exp(-input)))*1)+0
46  def neuron0x2ff60a0(self):
47  input = 0.638514
48  input = input + self.synapse0x2ff63e0()
49  input = input + self.synapse0x2ff6420()
50  input = input + self.synapse0x2ff6460()
51  if input<-709. : return 0
52  return ((1/(1+exp(-input)))*1)+0
53  def neuron0x2ff64a0(self):
54  input = 0.635708
55  input = input + self.synapse0x2ff67e0()
56  input = input + self.synapse0x2ff6820()
57  input = input + self.synapse0x2752b30()
58  input = input + self.synapse0x2752b70()
59  input = input + self.synapse0x2ff6970()
60  if input<-709. : return 0
61  return ((1/(1+exp(-input)))*1)+0
62  def neuron0x2ff69b0(self):
63  input = -0.260468
64  input = input + self.synapse0x2ff6cf0()
65  input = input + self.synapse0x2ff6d30()
66  input = input + self.synapse0x2ff6d70()
67  input = input + self.synapse0x2ff6db0()
68  input = input + self.synapse0x2ff6df0()
69  if input<-709. : return 0
70  return ((1/(1+exp(-input)))*1)+0
71  def neuron0x2ff6e30(self):
72  input = -0.357956
73  input = input + self.synapse0x2ff7170()
74  input = input + self.synapse0x2ff71b0()
75  input = input + self.synapse0x2ff71f0()
76  input = input + self.synapse0x2ff7230()
77  input = input + self.synapse0x2ff7270()
78  if input<-709. : return 0
79  return ((1/(1+exp(-input)))*1)+0
80  def neuron0x2ff72b0(self):
81  input = 1.5524
82  input = input + self.synapse0x2ff75f0()
83  input = input + self.synapse0x2ff7630()
84  input = input + self.synapse0x2ff7670()
85  return (input*1)+0
86  def synapse0x2755ce0(self):
87  return (self.neuron0x27555e0()*0.59633)
88  def synapse0x2ff5900(self):
89  return (self.neuron0x2755920()*-0.0283586)
90  def synapse0x2ff5940(self):
91  return (self.neuron0x2ff51e0()*0.14022)
92  def synapse0x2ff5980(self):
93  return (self.neuron0x27555e0()*0.268804)
94  def synapse0x3005cd0(self):
95  return (self.neuron0x2755920()*0.917725)
96  def synapse0x3005d10(self):
97  return (self.neuron0x2ff51e0()*-3.99021)
98  def synapse0x3006090(self):
99  return (self.neuron0x27555e0()*-1.0272)
100  def synapse0x30060d0(self):
101  return (self.neuron0x2755920()*-0.0494998)
102  def synapse0x3006110(self):
103  return (self.neuron0x2ff51e0()*1.16915)
104  def synapse0x3006370(self):
105  return (self.neuron0x27555e0()*-0.274182)
106  def synapse0x2ff6020(self):
107  return (self.neuron0x2755920()*-0.0951136)
108  def synapse0x2ff6060(self):
109  return (self.neuron0x2ff51e0()*1.0147)
110  def synapse0x2ff63e0(self):
111  return (self.neuron0x27555e0()*-1.01448)
112  def synapse0x2ff6420(self):
113  return (self.neuron0x2755920()*2.94388)
114  def synapse0x2ff6460(self):
115  return (self.neuron0x2ff51e0()*-1.08086)
116  def synapse0x2ff67e0(self):
117  return (self.neuron0x2ff5650()*-2.30037)
118  def synapse0x2ff6820(self):
119  return (self.neuron0x3005990()*-2.02821)
120  def synapse0x2752b30(self):
121  return (self.neuron0x3005d50()*-0.842132)
122  def synapse0x2752b70(self):
123  return (self.neuron0x3006150()*0.57788)
124  def synapse0x2ff6970(self):
125  return (self.neuron0x2ff60a0()*-1.87422)
126  def synapse0x2ff6cf0(self):
127  return (self.neuron0x2ff5650()*-0.899507)
128  def synapse0x2ff6d30(self):
129  return (self.neuron0x3005990()*-0.342827)
130  def synapse0x2ff6d70(self):
131  return (self.neuron0x3005d50()*-1.10312)
132  def synapse0x2ff6db0(self):
133  return (self.neuron0x3006150()*1.9133)
134  def synapse0x2ff6df0(self):
135  return (self.neuron0x2ff60a0()*0.148827)
136  def synapse0x2ff7170(self):
137  return (self.neuron0x2ff5650()*-1.38045)
138  def synapse0x2ff71b0(self):
139  return (self.neuron0x3005990()*0.265877)
140  def synapse0x2ff71f0(self):
141  return (self.neuron0x3005d50()*-1.67682)
142  def synapse0x2ff7230(self):
143  return (self.neuron0x3006150()*1.87259)
144  def synapse0x2ff7270(self):
145  return (self.neuron0x2ff60a0()*-0.474694)
146  def synapse0x2ff75f0(self):
147  return (self.neuron0x2ff64a0()*3.76876)
148  def synapse0x2ff7630(self):
149  return (self.neuron0x2ff69b0()*-2.34574)
150  def synapse0x2ff7670(self):
151  return (self.neuron0x2ff6e30()*-3.09955)
input2
Definition: test.py:9
input0
Definition: test.py:7
Definition: test.py:5
def value(self, index, in0, in1, in2)
Definition: test.py:6
input1
Definition: test.py:8
double exp(double)