Logo ROOT  
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.neuron0x55eb5f6d2dc0();
11  return 0.
12  def neuron0x55eb5eb228b0(self):
13  return self.input0
14  def neuron0x55eb5e941e70(self):
15  return self.input1
16  def neuron0x55eb5e7e3990(self):
17  return self.input2
18  def neuron0x55eb5eee3ec0(self):
19  input = 0.229263
20  input = input + self.synapse0x55eb5f6d1b80()
21  input = input + self.synapse0x55eb5f6d0e00()
22  input = input + self.synapse0x55eb5f6d0e40()
23  if input<-709. : return 0
24  return ((1/(1+exp(-input)))*1)+0
25  def neuron0x55eb5eb25110(self):
26  input = -0.024024
27  input = input + self.synapse0x55eb5f6d1030()
28  input = input + self.synapse0x55eb5f6d1070()
29  input = input + self.synapse0x55eb5f6d10b0()
30  if input<-709. : return 0
31  return ((1/(1+exp(-input)))*1)+0
32  def neuron0x55eb5eed1b70(self):
33  input = 0.985243
34  input = input + self.synapse0x55eb5f6d12a0()
35  input = input + self.synapse0x55eb5f6d12e0()
36  input = input + self.synapse0x55eb5f6d1320()
37  if input<-709. : return 0
38  return ((1/(1+exp(-input)))*1)+0
39  def neuron0x55eb5eb21f90(self):
40  input = 0.019661
41  input = input + self.synapse0x55eb5f6d1480()
42  input = input + self.synapse0x55eb5f6d1c50()
43  input = input + self.synapse0x55eb5f6d1c90()
44  if input<-709. : return 0
45  return ((1/(1+exp(-input)))*1)+0
46  def neuron0x55eb5f6d1cd0(self):
47  input = 1.0818
48  input = input + self.synapse0x55eb5f6d2010()
49  input = input + self.synapse0x55eb5f6d2050()
50  input = input + self.synapse0x55eb5f6d2090()
51  if input<-709. : return 0
52  return ((1/(1+exp(-input)))*1)+0
53  def neuron0x55eb5f6d20d0(self):
54  input = 0.748884
55  input = input + self.synapse0x55eb5f6d2410()
56  input = input + self.synapse0x55eb5f6d2450()
57  input = input + self.synapse0x55eb5f6d2490()
58  input = input + self.synapse0x55eb5f6d24d0()
59  input = input + self.synapse0x55eb5f6d2510()
60  if input<-709. : return 0
61  return ((1/(1+exp(-input)))*1)+0
62  def neuron0x55eb5f6d2550(self):
63  input = -1.02429
64  input = input + self.synapse0x55eb5f6d2800()
65  input = input + self.synapse0x55eb5f6d2840()
66  input = input + self.synapse0x55eb5f6d2880()
67  input = input + self.synapse0x55eb5f6d28c0()
68  input = input + self.synapse0x55eb5f6d2900()
69  if input<-709. : return 0
70  return ((1/(1+exp(-input)))*1)+0
71  def neuron0x55eb5f6d2940(self):
72  input = -1.04001
73  input = input + self.synapse0x55eb5f6d2c80()
74  input = input + self.synapse0x55eb5f6d2cc0()
75  input = input + self.synapse0x55eb5f6d2d00()
76  input = input + self.synapse0x55eb5f6d2d40()
77  input = input + self.synapse0x55eb5f6d2d80()
78  if input<-709. : return 0
79  return ((1/(1+exp(-input)))*1)+0
80  def neuron0x55eb5f6d2dc0(self):
81  input = -0.0757511
82  input = input + self.synapse0x55eb5f6d3100()
83  input = input + self.synapse0x55eb5f6d3140()
84  input = input + self.synapse0x55eb5f6d3180()
85  return (input*1)+0
86  def synapse0x55eb5f6d1b80(self):
87  return (self.neuron0x55eb5eb228b0()*0.600304)
88  def synapse0x55eb5f6d0e00(self):
89  return (self.neuron0x55eb5e941e70()*3.46)
90  def synapse0x55eb5f6d0e40(self):
91  return (self.neuron0x55eb5e7e3990()*-1.36065)
92  def synapse0x55eb5f6d1030(self):
93  return (self.neuron0x55eb5eb228b0()*0.832061)
94  def synapse0x55eb5f6d1070(self):
95  return (self.neuron0x55eb5e941e70()*2.60925)
96  def synapse0x55eb5f6d10b0(self):
97  return (self.neuron0x55eb5e7e3990()*-3.38808)
98  def synapse0x55eb5f6d12a0(self):
99  return (self.neuron0x55eb5eb228b0()*-1.04713)
100  def synapse0x55eb5f6d12e0(self):
101  return (self.neuron0x55eb5e941e70()*3.0736)
102  def synapse0x55eb5f6d1320(self):
103  return (self.neuron0x55eb5e7e3990()*-2.14683)
104  def synapse0x55eb5f6d1480(self):
105  return (self.neuron0x55eb5eb228b0()*-0.054563)
106  def synapse0x55eb5f6d1c50(self):
107  return (self.neuron0x55eb5e941e70()*0.209328)
108  def synapse0x55eb5f6d1c90(self):
109  return (self.neuron0x55eb5e7e3990()*1.11529)
110  def synapse0x55eb5f6d2010(self):
111  return (self.neuron0x55eb5eb228b0()*-1.36506)
112  def synapse0x55eb5f6d2050(self):
113  return (self.neuron0x55eb5e941e70()*0.624052)
114  def synapse0x55eb5f6d2090(self):
115  return (self.neuron0x55eb5e7e3990()*2.96922)
116  def synapse0x55eb5f6d2410(self):
117  return (self.neuron0x55eb5eee3ec0()*0.113813)
118  def synapse0x55eb5f6d2450(self):
119  return (self.neuron0x55eb5eb25110()*0.138507)
120  def synapse0x55eb5f6d2490(self):
121  return (self.neuron0x55eb5eed1b70()*0.702617)
122  def synapse0x55eb5f6d24d0(self):
123  return (self.neuron0x55eb5eb21f90()*0.617661)
124  def synapse0x55eb5f6d2510(self):
125  return (self.neuron0x55eb5f6d1cd0()*-0.591285)
126  def synapse0x55eb5f6d2800(self):
127  return (self.neuron0x55eb5eee3ec0()*0.865994)
128  def synapse0x55eb5f6d2840(self):
129  return (self.neuron0x55eb5eb25110()*-0.448593)
130  def synapse0x55eb5f6d2880(self):
131  return (self.neuron0x55eb5eed1b70()*-1.00933)
132  def synapse0x55eb5f6d28c0(self):
133  return (self.neuron0x55eb5eb21f90()*-3.30009)
134  def synapse0x55eb5f6d2900(self):
135  return (self.neuron0x55eb5f6d1cd0()*1.92884)
136  def synapse0x55eb5f6d2c80(self):
137  return (self.neuron0x55eb5eee3ec0()*-1.40135)
138  def synapse0x55eb5f6d2cc0(self):
139  return (self.neuron0x55eb5eb25110()*-1.53593)
140  def synapse0x55eb5f6d2d00(self):
141  return (self.neuron0x55eb5eed1b70()*-2.77468)
142  def synapse0x55eb5f6d2d40(self):
143  return (self.neuron0x55eb5eb21f90()*-1.10669)
144  def synapse0x55eb5f6d2d80(self):
145  return (self.neuron0x55eb5f6d1cd0()*1.67305)
146  def synapse0x55eb5f6d3100(self):
147  return (self.neuron0x55eb5f6d20d0()*-0.114539)
148  def synapse0x55eb5f6d3140(self):
149  return (self.neuron0x55eb5f6d2550()*1.68214)
150  def synapse0x55eb5f6d3180(self):
151  return (self.neuron0x55eb5f6d2940()*1.57208)
exp
double exp(double)
test.test.value
def value(self, index, in0, in1, in2)
Definition: test.py:6
test.test
Definition: test.py:5
test.test.input0
input0
Definition: test.py:7
test.test.input2
input2
Definition: test.py:9
test.test.input1
input1
Definition: test.py:8