Logo ROOT  
Reference Guide
test.py
Go to the documentation of this file.
1## \file
2## \ingroup tutorial_pyroot_legacy
3## \notebook -nodraw
4##
5## \macro_code
6##
7## \author Wim Lavrijsen
8
9from cmath import exp
10
11from cmath import tanh
12
13class test:
14 def value(self,index,in0,in1,in2):
15 self.input0 = (in0 - 0.459987)/0.0509152
16 self.input1 = (in1 - 0.188581)/0.0656804
17 self.input2 = (in2 - 134.719)/16.5033
18 if index==0: return ((self.neuron0xad38cb8()*1)+0);
19 return 0.
20 def neuron0xad37278(self):
21 return self.input0
22 def neuron0xad37408(self):
23 return self.input1
24 def neuron0xad375e0(self):
25 return self.input2
26 def neuron0xad378d8(self):
27 input = -0.125959
28 input = input + self.synapse0xad3c090()
29 input = input + self.synapse0xad37a68()
30 input = input + self.synapse0xad37a90()
31 return ((1/(1+exp(-input)))*1)+0
32 def neuron0xad37ab8(self):
33 input = -1.28521
34 input = input + self.synapse0xad37c90()
35 input = input + self.synapse0xad37cb8()
36 input = input + self.synapse0xad37ce0()
37 return ((1/(1+exp(-input)))*1)+0
38 def neuron0xad37d08(self):
39 input = 0.869267
40 input = input + self.synapse0xad37ee0()
41 input = input + self.synapse0xad37f08()
42 input = input + self.synapse0xad37f30()
43 return ((1/(1+exp(-input)))*1)+0
44 def neuron0xad37f58(self):
45 input = -0.244184
46 input = input + self.synapse0xad38150()
47 input = input + self.synapse0xad38178()
48 input = input + self.synapse0xad381a0()
49 return ((1/(1+exp(-input)))*1)+0
50 def neuron0xad381c8(self):
51 input = 0.264279
52 input = input + self.synapse0xad383c0()
53 input = input + self.synapse0xad383e8()
54 input = input + self.synapse0xad38410()
55 return ((1/(1+exp(-input)))*1)+0
56 def neuron0xad38460(self):
57 input = -0.460612
58 input = input + self.synapse0xad38438()
59 input = input + self.synapse0xad38658()
60 input = input + self.synapse0xad38708()
61 input = input + self.synapse0xad38730()
62 input = input + self.synapse0xad38758()
63 return ((1/(1+exp(-input)))*1)+0
64 def neuron0xad38780(self):
65 input = 1.34716
66 input = input + self.synapse0xad38930()
67 input = input + self.synapse0xad38958()
68 input = input + self.synapse0xad38980()
69 input = input + self.synapse0xad389a8()
70 input = input + self.synapse0xad389d0()
71 return ((1/(1+exp(-input)))*1)+0
72 def neuron0xad389f8(self):
73 input = -0.550286
74 input = input + self.synapse0xad38bf0()
75 input = input + self.synapse0xad38c18()
76 input = input + self.synapse0xad38c40()
77 input = input + self.synapse0xad38c68()
78 input = input + self.synapse0xad38c90()
79 return ((1/(1+exp(-input)))*1)+0
80 def neuron0xad38cb8(self):
81 input = -0.960531
82 input = input + self.synapse0xad38eb0()
83 input = input + self.synapse0xad38ed8()
84 input = input + self.synapse0xad38f00()
85 return (input*1)+0
86 def synapse0xad3c090(self):
87 return (self.neuron0xad37278()*1.6232)
88 def synapse0xad37a68(self):
89 return (self.neuron0xad37408()*-1.0136)
90 def synapse0xad37a90(self):
91 return (self.neuron0xad375e0()*-0.539065)
92 def synapse0xad37c90(self):
93 return (self.neuron0xad37278()*0.264157)
94 def synapse0xad37cb8(self):
95 return (self.neuron0xad37408()*-2.25461)
96 def synapse0xad37ce0(self):
97 return (self.neuron0xad375e0()*1.94399)
98 def synapse0xad37ee0(self):
99 return (self.neuron0xad37278()*0.0608883)
100 def synapse0xad37f08(self):
101 return (self.neuron0xad37408()*-0.0482581)
102 def synapse0xad37f30(self):
103 return (self.neuron0xad375e0()*-1.07958)
104 def synapse0xad38150(self):
105 return (self.neuron0xad37278()*-0.0811102)
106 def synapse0xad38178(self):
107 return (self.neuron0xad37408()*-2.58659)
108 def synapse0xad381a0(self):
109 return (self.neuron0xad375e0()*1.56508)
110 def synapse0xad383c0(self):
111 return (self.neuron0xad37278()*-0.770005)
112 def synapse0xad383e8(self):
113 return (self.neuron0xad37408()*0.388095)
114 def synapse0xad38410(self):
115 return (self.neuron0xad375e0()*0.619588)
116 def synapse0xad38438(self):
117 return (self.neuron0xad378d8()*0.695049)
118 def synapse0xad38658(self):
119 return (self.neuron0xad37ab8()*0.400539)
120 def synapse0xad38708(self):
121 return (self.neuron0xad37d08()*0.631674)
122 def synapse0xad38730(self):
123 return (self.neuron0xad37f58()*-0.66193)
124 def synapse0xad38758(self):
125 return (self.neuron0xad381c8()*1.00913)
126 def synapse0xad38930(self):
127 return (self.neuron0xad378d8()*-0.182205)
128 def synapse0xad38958(self):
129 return (self.neuron0xad37ab8()*-0.920062)
130 def synapse0xad38980(self):
131 return (self.neuron0xad37d08()*-0.464498)
132 def synapse0xad389a8(self):
133 return (self.neuron0xad37f58()*-0.222692)
134 def synapse0xad389d0(self):
135 return (self.neuron0xad381c8()*-0.546376)
136 def synapse0xad38bf0(self):
137 return (self.neuron0xad378d8()*-0.446571)
138 def synapse0xad38c18(self):
139 return (self.neuron0xad37ab8()*2.22403)
140 def synapse0xad38c40(self):
141 return (self.neuron0xad37d08()*1.02097)
142 def synapse0xad38c68(self):
143 return (self.neuron0xad37f58()*-2.35373)
144 def synapse0xad38c90(self):
145 return (self.neuron0xad381c8()*4.67134)
146 def synapse0xad38eb0(self):
147 return (self.neuron0xad38460()*4.18467)
148 def synapse0xad38ed8(self):
149 return (self.neuron0xad38780()*-4.31992)
150 def synapse0xad38f00(self):
151 return (self.neuron0xad389f8()*0.916293)
double exp(double)
Definition: test.py:1