Logo ROOT  
Reference Guide
test.py
Go to the documentation of this file.
1from math import exp
2
3from math import tanh
4
5class test:
6 def value(self,index,in0,in1,in2):
7 self.input0input0 = (in0 - 0.459987)/0.0509152
8 self.input1input1 = (in1 - 0.188581)/0.0656804
9 self.input2input2 = (in2 - 134.719)/16.5033
10 if index==0: return self.neuron0x55b98e0c5f20();
11 return 0.
12 def neuron0x55b98da1bee0(self):
13 return self.input0input0
14 def neuron0x55b98da63c60(self):
15 return self.input1input1
16 def neuron0x55b98da15b80(self):
17 return self.input2input2
18 def neuron0x55b98d63f7e0(self):
19 input = -1.74151
20 input = input + self.synapse0x55b98e0c49f0()
21 input = input + self.synapse0x55b98e0c3e50()
22 input = input + self.synapse0x55b98e0c3e90()
23 if input<-709. : return 0
24 return ((1/(1+exp(-input)))*1)+0
25 def neuron0x55b98d3ac1b0(self):
26 input = 0.455701
27 input = input + self.synapse0x55b98e0c4080()
28 input = input + self.synapse0x55b98e0c40c0()
29 input = input + self.synapse0x55b98e0c4100()
30 if input<-709. : return 0
31 return ((1/(1+exp(-input)))*1)+0
32 def neuron0x55b98d18f260(self):
33 input = 0.638847
34 input = input + self.synapse0x55b98e0c42f0()
35 input = input + self.synapse0x55b98e0c4330()
36 input = input + self.synapse0x55b98e0c4370()
37 if input<-709. : return 0
38 return ((1/(1+exp(-input)))*1)+0
39 def neuron0x55b98e0c4a30(self):
40 input = -1.35586
41 input = input + self.synapse0x55b98e0c4d70()
42 input = input + self.synapse0x55b98e0c4db0()
43 input = input + self.synapse0x55b98e0c4df0()
44 if input<-709. : return 0
45 return ((1/(1+exp(-input)))*1)+0
46 def neuron0x55b98e0c4e30(self):
47 input = -0.887498
48 input = input + self.synapse0x55b98e0c5170()
49 input = input + self.synapse0x55b98e0c51b0()
50 input = input + self.synapse0x55b98e0c51f0()
51 if input<-709. : return 0
52 return ((1/(1+exp(-input)))*1)+0
53 def neuron0x55b98e0c5230(self):
54 input = -0.219397
55 input = input + self.synapse0x55b98e0c5570()
56 input = input + self.synapse0x55b98e0c55b0()
57 input = input + self.synapse0x55b98e0c55f0()
58 input = input + self.synapse0x55b98e0c5630()
59 input = input + self.synapse0x55b98e0c5670()
60 if input<-709. : return 0
61 return ((1/(1+exp(-input)))*1)+0
62 def neuron0x55b98e0c56b0(self):
63 input = 0.197513
64 input = input + self.synapse0x55b98e0c5960()
65 input = input + self.synapse0x55b98e0c59a0()
66 input = input + self.synapse0x55b98e0c59e0()
67 input = input + self.synapse0x55b98e0c5a20()
68 input = input + self.synapse0x55b98e0c5a60()
69 if input<-709. : return 0
70 return ((1/(1+exp(-input)))*1)+0
71 def neuron0x55b98e0c5aa0(self):
72 input = 0.719242
73 input = input + self.synapse0x55b98e0c5de0()
74 input = input + self.synapse0x55b98e0c5e20()
75 input = input + self.synapse0x55b98e0c5e60()
76 input = input + self.synapse0x55b98e0c5ea0()
77 input = input + self.synapse0x55b98e0c5ee0()
78 if input<-709. : return 0
79 return ((1/(1+exp(-input)))*1)+0
80 def neuron0x55b98e0c5f20(self):
81 input = 5.06787
82 input = input + self.synapse0x55b98e0c6260()
83 input = input + self.synapse0x55b98e0c62a0()
84 input = input + self.synapse0x55b98e0c62e0()
85 return (input*1)+0
86 def synapse0x55b98e0c49f0(self):
87 return (self.neuron0x55b98da1bee0()*0.46689)
88 def synapse0x55b98e0c3e50(self):
89 return (self.neuron0x55b98da63c60()*-2.11829)
90 def synapse0x55b98e0c3e90(self):
91 return (self.neuron0x55b98da15b80()*2.37082)
92 def synapse0x55b98e0c4080(self):
93 return (self.neuron0x55b98da1bee0()*0.915064)
94 def synapse0x55b98e0c40c0(self):
95 return (self.neuron0x55b98da63c60()*0.432381)
96 def synapse0x55b98e0c4100(self):
97 return (self.neuron0x55b98da15b80()*-0.726943)
98 def synapse0x55b98e0c42f0(self):
99 return (self.neuron0x55b98da1bee0()*-3.19338)
100 def synapse0x55b98e0c4330(self):
101 return (self.neuron0x55b98da63c60()*-0.452603)
102 def synapse0x55b98e0c4370(self):
103 return (self.neuron0x55b98da15b80()*-0.391384)
104 def synapse0x55b98e0c4d70(self):
105 return (self.neuron0x55b98da1bee0()*-0.162594)
106 def synapse0x55b98e0c4db0(self):
107 return (self.neuron0x55b98da63c60()*-0.196636)
108 def synapse0x55b98e0c4df0(self):
109 return (self.neuron0x55b98da15b80()*1.81709)
110 def synapse0x55b98e0c5170(self):
111 return (self.neuron0x55b98da1bee0()*0.925074)
112 def synapse0x55b98e0c51b0(self):
113 return (self.neuron0x55b98da63c60()*-0.0767965)
114 def synapse0x55b98e0c51f0(self):
115 return (self.neuron0x55b98da15b80()*-0.604306)
116 def synapse0x55b98e0c5570(self):
117 return (self.neuron0x55b98d63f7e0()*-0.133998)
118 def synapse0x55b98e0c55b0(self):
119 return (self.neuron0x55b98d3ac1b0()*0.662852)
120 def synapse0x55b98e0c55f0(self):
121 return (self.neuron0x55b98d18f260()*-0.254142)
122 def synapse0x55b98e0c5630(self):
123 return (self.neuron0x55b98e0c4a30()*0.321085)
124 def synapse0x55b98e0c5670(self):
125 return (self.neuron0x55b98e0c4e30()*1.09726)
126 def synapse0x55b98e0c5960(self):
127 return (self.neuron0x55b98d63f7e0()*-0.063544)
128 def synapse0x55b98e0c59a0(self):
129 return (self.neuron0x55b98d3ac1b0()*-0.43435)
130 def synapse0x55b98e0c59e0(self):
131 return (self.neuron0x55b98d18f260()*0.0834695)
132 def synapse0x55b98e0c5a20(self):
133 return (self.neuron0x55b98e0c4a30()*-0.0266138)
134 def synapse0x55b98e0c5a60(self):
135 return (self.neuron0x55b98e0c4e30()*-0.166469)
136 def synapse0x55b98e0c5de0(self):
137 return (self.neuron0x55b98d63f7e0()*2.97217)
138 def synapse0x55b98e0c5e20(self):
139 return (self.neuron0x55b98d3ac1b0()*-1.60298)
140 def synapse0x55b98e0c5e60(self):
141 return (self.neuron0x55b98d18f260()*-0.944039)
142 def synapse0x55b98e0c5ea0(self):
143 return (self.neuron0x55b98e0c4a30()*-2.64563)
144 def synapse0x55b98e0c5ee0(self):
145 return (self.neuron0x55b98e0c4e30()*-2.93289)
146 def synapse0x55b98e0c6260(self):
147 return (self.neuron0x55b98e0c5230()*-2.66263)
148 def synapse0x55b98e0c62a0(self):
149 return (self.neuron0x55b98e0c56b0()*-7.61007)
150 def synapse0x55b98e0c62e0(self):
151 return (self.neuron0x55b98e0c5aa0()*1.92046)
double exp(double)
Definition: test.py:5
def value(self, index, in0, in1, in2)
Definition: test.py:6
input2
Definition: test.py:9
input0
Definition: test.py:7
input1
Definition: test.py:8