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.neuron0x2f76ad0();
11  return 0.
12  def neuron0x28ee7d0(self):
13  return self.input0
14  def neuron0x2501030(self):
15  return self.input1
16  def neuron0x28eed20(self):
17  return self.input2
18  def neuron0x25ad940(self):
19  input = -2.79559
20  input = input + self.synapse0x2f87cb0()
21  input = input + self.synapse0x2f75130()
22  input = input + self.synapse0x2f75170()
23  if input<-709. : return 0
24  return ((1/(1+exp(-input)))*1)+0
25  def neuron0x238aa30(self):
26  input = 0.692785
27  input = input + self.synapse0x2f75360()
28  input = input + self.synapse0x2f753a0()
29  input = input + self.synapse0x2f753e0()
30  if input<-709. : return 0
31  return ((1/(1+exp(-input)))*1)+0
32  def neuron0x25a2220(self):
33  input = 0.651324
34  input = input + self.synapse0x2f755d0()
35  input = input + self.synapse0x2f75610()
36  input = input + self.synapse0x2f75650()
37  if input<-709. : return 0
38  return ((1/(1+exp(-input)))*1)+0
39  def neuron0x25dca40(self):
40  input = -1.18474
41  input = input + self.synapse0x2f75840()
42  input = input + self.synapse0x2f75880()
43  input = input + self.synapse0x2f758c0()
44  if input<-709. : return 0
45  return ((1/(1+exp(-input)))*1)+0
46  def neuron0x2f759e0(self):
47  input = -2.14111
48  input = input + self.synapse0x2f75d20()
49  input = input + self.synapse0x2f75d60()
50  input = input + self.synapse0x2f75da0()
51  if input<-709. : return 0
52  return ((1/(1+exp(-input)))*1)+0
53  def neuron0x2f75de0(self):
54  input = -0.427019
55  input = input + self.synapse0x2f76120()
56  input = input + self.synapse0x2f76160()
57  input = input + self.synapse0x2f761a0()
58  input = input + self.synapse0x2f761e0()
59  input = input + self.synapse0x2f76220()
60  if input<-709. : return 0
61  return ((1/(1+exp(-input)))*1)+0
62  def neuron0x2f76260(self):
63  input = -1.1033
64  input = input + self.synapse0x2f76510()
65  input = input + self.synapse0x2f76550()
66  input = input + self.synapse0x2f76590()
67  input = input + self.synapse0x2f765d0()
68  input = input + self.synapse0x2f76610()
69  if input<-709. : return 0
70  return ((1/(1+exp(-input)))*1)+0
71  def neuron0x2f76650(self):
72  input = -0.131984
73  input = input + self.synapse0x2f76990()
74  input = input + self.synapse0x2f769d0()
75  input = input + self.synapse0x2f76a10()
76  input = input + self.synapse0x2f76a50()
77  input = input + self.synapse0x2f76a90()
78  if input<-709. : return 0
79  return ((1/(1+exp(-input)))*1)+0
80  def neuron0x2f76ad0(self):
81  input = -0.14807
82  input = input + self.synapse0x2f76e10()
83  input = input + self.synapse0x2f76e50()
84  input = input + self.synapse0x2f76e90()
85  return (input*1)+0
86  def synapse0x2f87cb0(self):
87  return (self.neuron0x28ee7d0()*0.666437)
88  def synapse0x2f75130(self):
89  return (self.neuron0x2501030()*-3.26943)
90  def synapse0x2f75170(self):
91  return (self.neuron0x28eed20()*2.82862)
92  def synapse0x2f75360(self):
93  return (self.neuron0x28ee7d0()*0.212486)
94  def synapse0x2f753a0(self):
95  return (self.neuron0x2501030()*-0.161324)
96  def synapse0x2f753e0(self):
97  return (self.neuron0x28eed20()*0.715228)
98  def synapse0x2f755d0(self):
99  return (self.neuron0x28ee7d0()*-0.0450477)
100  def synapse0x2f75610(self):
101  return (self.neuron0x2501030()*1.92114)
102  def synapse0x2f75650(self):
103  return (self.neuron0x28eed20()*-3.6274)
104  def synapse0x2f75840(self):
105  return (self.neuron0x28ee7d0()*2.01989)
106  def synapse0x2f75880(self):
107  return (self.neuron0x2501030()*-0.305765)
108  def synapse0x2f758c0(self):
109  return (self.neuron0x28eed20()*-2.57397)
110  def synapse0x2f75d20(self):
111  return (self.neuron0x28ee7d0()*-1.10073)
112  def synapse0x2f75d60(self):
113  return (self.neuron0x2501030()*-0.62475)
114  def synapse0x2f75da0(self):
115  return (self.neuron0x28eed20()*3.87214)
116  def synapse0x2f76120(self):
117  return (self.neuron0x25ad940()*1.77926)
118  def synapse0x2f76160(self):
119  return (self.neuron0x238aa30()*-2.59866)
120  def synapse0x2f761a0(self):
121  return (self.neuron0x25a2220()*-0.821622)
122  def synapse0x2f761e0(self):
123  return (self.neuron0x25dca40()*-3.0585)
124  def synapse0x2f76220(self):
125  return (self.neuron0x2f759e0()*-0.903053)
126  def synapse0x2f76510(self):
127  return (self.neuron0x25ad940()*2.11697)
128  def synapse0x2f76550(self):
129  return (self.neuron0x238aa30()*-1.1639)
130  def synapse0x2f76590(self):
131  return (self.neuron0x25a2220()*-1.38732)
132  def synapse0x2f765d0(self):
133  return (self.neuron0x25dca40()*-1.73776)
134  def synapse0x2f76610(self):
135  return (self.neuron0x2f759e0()*-1.33524)
136  def synapse0x2f76990(self):
137  return (self.neuron0x25ad940()*-0.19321)
138  def synapse0x2f769d0(self):
139  return (self.neuron0x238aa30()*-1.31675)
140  def synapse0x2f76a10(self):
141  return (self.neuron0x25a2220()*-2.22443)
142  def synapse0x2f76a50(self):
143  return (self.neuron0x25dca40()*0.463103)
144  def synapse0x2f76a90(self):
145  return (self.neuron0x2f759e0()*-1.30253)
146  def synapse0x2f76e10(self):
147  return (self.neuron0x2f75de0()*2.46041)
148  def synapse0x2f76e50(self):
149  return (self.neuron0x2f76260()*2.62678)
150  def synapse0x2f76e90(self):
151  return (self.neuron0x2f76650()*1.21985)
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)