Logo ROOT   6.10/09
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.neuron0x559026774840();
11  return 0.
12  def neuron0x559024bf66a0(self):
13  return self.input0
14  def neuron0x559024bb2c80(self):
15  return self.input1
16  def neuron0x559024c68110(self):
17  return self.input2
18  def neuron0x559024136f40(self):
19  input = 1.02456
20  input = input + self.synapse0x559026511480()
21  input = input + self.synapse0x5590265114c0()
22  input = input + self.synapse0x5590267722c0()
23  if input<-709. : return 0
24  return ((1/(1+exp(-input)))*1)+0
25  def neuron0x559024119600(self):
26  input = -1.50732
27  input = input + self.synapse0x5590267724b0()
28  input = input + self.synapse0x5590267724f0()
29  input = input + self.synapse0x559026772530()
30  if input<-709. : return 0
31  return ((1/(1+exp(-input)))*1)+0
32  def neuron0x559026772570(self):
33  input = -2.17036
34  input = input + self.synapse0x5590267728b0()
35  input = input + self.synapse0x5590267728f0()
36  input = input + self.synapse0x559026772930()
37  if input<-709. : return 0
38  return ((1/(1+exp(-input)))*1)+0
39  def neuron0x559026773390(self):
40  input = -1.88251
41  input = input + self.synapse0x559026772970()
42  input = input + self.synapse0x5590267736d0()
43  input = input + self.synapse0x559026773710()
44  if input<-709. : return 0
45  return ((1/(1+exp(-input)))*1)+0
46  def neuron0x559026773750(self):
47  input = 0.297173
48  input = input + self.synapse0x559026773a90()
49  input = input + self.synapse0x559026773ad0()
50  input = input + self.synapse0x559026773b10()
51  if input<-709. : return 0
52  return ((1/(1+exp(-input)))*1)+0
53  def neuron0x559026773b50(self):
54  input = 2.65859
55  input = input + self.synapse0x559026773e90()
56  input = input + self.synapse0x559026773ed0()
57  input = input + self.synapse0x559026773f10()
58  input = input + self.synapse0x559026773f50()
59  input = input + self.synapse0x559026773f90()
60  if input<-709. : return 0
61  return ((1/(1+exp(-input)))*1)+0
62  def neuron0x559026773fd0(self):
63  input = 1.45034
64  input = input + self.synapse0x559026774280()
65  input = input + self.synapse0x5590267742c0()
66  input = input + self.synapse0x559026774300()
67  input = input + self.synapse0x559026774340()
68  input = input + self.synapse0x559026774380()
69  if input<-709. : return 0
70  return ((1/(1+exp(-input)))*1)+0
71  def neuron0x5590267743c0(self):
72  input = -2.37396
73  input = input + self.synapse0x559026774700()
74  input = input + self.synapse0x559026774740()
75  input = input + self.synapse0x559026774780()
76  input = input + self.synapse0x5590267747c0()
77  input = input + self.synapse0x559026774800()
78  if input<-709. : return 0
79  return ((1/(1+exp(-input)))*1)+0
80  def neuron0x559026774840(self):
81  input = 0.954137
82  input = input + self.synapse0x559026774b80()
83  input = input + self.synapse0x559026774bc0()
84  input = input + self.synapse0x559026774c00()
85  return (input*1)+0
86  def synapse0x559026511480(self):
87  return (self.neuron0x559024bf66a0()*-2.1414)
88  def synapse0x5590265114c0(self):
89  return (self.neuron0x559024bb2c80()*0.435405)
90  def synapse0x5590267722c0(self):
91  return (self.neuron0x559024c68110()*2.45528)
92  def synapse0x5590267724b0(self):
93  return (self.neuron0x559024bf66a0()*-0.306484)
94  def synapse0x5590267724f0(self):
95  return (self.neuron0x559024bb2c80()*-0.62066)
96  def synapse0x559026772530(self):
97  return (self.neuron0x559024c68110()*1.80001)
98  def synapse0x5590267728b0(self):
99  return (self.neuron0x559024bf66a0()*0.0749117)
100  def synapse0x5590267728f0(self):
101  return (self.neuron0x559024bb2c80()*-4.01757)
102  def synapse0x559026772930(self):
103  return (self.neuron0x559024c68110()*1.45274)
104  def synapse0x559026772970(self):
105  return (self.neuron0x559024bf66a0()*0.875246)
106  def synapse0x5590267736d0(self):
107  return (self.neuron0x559024bb2c80()*-2.62653)
108  def synapse0x559026773710(self):
109  return (self.neuron0x559024c68110()*3.50377)
110  def synapse0x559026773a90(self):
111  return (self.neuron0x559024bf66a0()*0.527159)
112  def synapse0x559026773ad0(self):
113  return (self.neuron0x559024bb2c80()*1.82372)
114  def synapse0x559026773b10(self):
115  return (self.neuron0x559024c68110()*0.432935)
116  def synapse0x559026773e90(self):
117  return (self.neuron0x559024136f40()*1.47768)
118  def synapse0x559026773ed0(self):
119  return (self.neuron0x559024119600()*1.98132)
120  def synapse0x559026773f10(self):
121  return (self.neuron0x559026772570()*0.756777)
122  def synapse0x559026773f50(self):
123  return (self.neuron0x559026773390()*-0.0853037)
124  def synapse0x559026773f90(self):
125  return (self.neuron0x559026773750()*-0.133129)
126  def synapse0x559026774280(self):
127  return (self.neuron0x559024136f40()*2.18696)
128  def synapse0x5590267742c0(self):
129  return (self.neuron0x559024119600()*1.62142)
130  def synapse0x559026774300(self):
131  return (self.neuron0x559026772570()*-1.25519)
132  def synapse0x559026774340(self):
133  return (self.neuron0x559026773390()*-0.832054)
134  def synapse0x559026774380(self):
135  return (self.neuron0x559026773750()*1.65788)
136  def synapse0x559026774700(self):
137  return (self.neuron0x559024136f40()*0.870191)
138  def synapse0x559026774740(self):
139  return (self.neuron0x559024119600()*-1.4173)
140  def synapse0x559026774780(self):
141  return (self.neuron0x559026772570()*0.917892)
142  def synapse0x5590267747c0(self):
143  return (self.neuron0x559026773390()*1.36003)
144  def synapse0x559026774800(self):
145  return (self.neuron0x559026773750()*-0.31424)
146  def synapse0x559026774b80(self):
147  return (self.neuron0x559026773b50()*-2.82386)
148  def synapse0x559026774bc0(self):
149  return (self.neuron0x559026773fd0()*1.53673)
150  def synapse0x559026774c00(self):
151  return (self.neuron0x5590267743c0()*3.18008)
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)