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.neuron0x56347fcbdea0();
11  return 0.
12  def neuron0x56347f6fd7e0(self):
13  return self.input0
14  def neuron0x56347f686100(self):
15  return self.input1
16  def neuron0x56347e5ff2d0(self):
17  return self.input2
18  def neuron0x56347de70050(self):
19  input = -0.951873
20  input = input + self.synapse0x56347fccf140()
21  input = input + self.synapse0x56347fcbcd20()
22  input = input + self.synapse0x56347fcbcd60()
23  if input<-709. : return 0
24  return ((1/(1+exp(-input)))*1)+0
25  def neuron0x56347e9112c0(self):
26  input = -1.769
27  input = input + self.synapse0x56347fcbc300()
28  input = input + self.synapse0x56347fcbc340()
29  input = input + self.synapse0x56347fcbc380()
30  if input<-709. : return 0
31  return ((1/(1+exp(-input)))*1)+0
32  def neuron0x56347e5e3ba0(self):
33  input = -0.504188
34  input = input + self.synapse0x56347fcbc570()
35  input = input + self.synapse0x56347fcbc5b0()
36  input = input + self.synapse0x56347fcbc5f0()
37  if input<-709. : return 0
38  return ((1/(1+exp(-input)))*1)+0
39  def neuron0x56347e8f0210(self):
40  input = -0.994744
41  input = input + self.synapse0x56347fcbc7e0()
42  input = input + self.synapse0x56347fcbc820()
43  input = input + self.synapse0x56347fcbc860()
44  if input<-709. : return 0
45  return ((1/(1+exp(-input)))*1)+0
46  def neuron0x56347fcbc8a0(self):
47  input = 0.511999
48  input = input + self.synapse0x56347fcbd0f0()
49  input = input + self.synapse0x56347fcbd130()
50  input = input + self.synapse0x56347fcbd170()
51  if input<-709. : return 0
52  return ((1/(1+exp(-input)))*1)+0
53  def neuron0x56347fcbd1b0(self):
54  input = -2.33524
55  input = input + self.synapse0x56347fcbd4f0()
56  input = input + self.synapse0x56347fcbd530()
57  input = input + self.synapse0x56347fcbd570()
58  input = input + self.synapse0x56347fcbd5b0()
59  input = input + self.synapse0x56347fcbd5f0()
60  if input<-709. : return 0
61  return ((1/(1+exp(-input)))*1)+0
62  def neuron0x56347fcbd630(self):
63  input = -0.146544
64  input = input + self.synapse0x56347fcbd8e0()
65  input = input + self.synapse0x56347fcbd920()
66  input = input + self.synapse0x56347fcbd960()
67  input = input + self.synapse0x56347fcbd9a0()
68  input = input + self.synapse0x56347fcbd9e0()
69  if input<-709. : return 0
70  return ((1/(1+exp(-input)))*1)+0
71  def neuron0x56347fcbda20(self):
72  input = -1.07269
73  input = input + self.synapse0x56347fcbdd60()
74  input = input + self.synapse0x56347fcbdda0()
75  input = input + self.synapse0x56347fcbdde0()
76  input = input + self.synapse0x56347fcbde20()
77  input = input + self.synapse0x56347fcbde60()
78  if input<-709. : return 0
79  return ((1/(1+exp(-input)))*1)+0
80  def neuron0x56347fcbdea0(self):
81  input = -1.26408
82  input = input + self.synapse0x56347fcbe1e0()
83  input = input + self.synapse0x56347fcbe220()
84  input = input + self.synapse0x56347fcbe260()
85  return (input*1)+0
86  def synapse0x56347fccf140(self):
87  return (self.neuron0x56347f6fd7e0()*-0.462282)
88  def synapse0x56347fcbcd20(self):
89  return (self.neuron0x56347f686100()*-0.738333)
90  def synapse0x56347fcbcd60(self):
91  return (self.neuron0x56347e5ff2d0()*1.32694)
92  def synapse0x56347fcbc300(self):
93  return (self.neuron0x56347f6fd7e0()*0.528101)
94  def synapse0x56347fcbc340(self):
95  return (self.neuron0x56347f686100()*-3.26207)
96  def synapse0x56347fcbc380(self):
97  return (self.neuron0x56347e5ff2d0()*2.15632)
98  def synapse0x56347fcbc570(self):
99  return (self.neuron0x56347f6fd7e0()*1.45261)
100  def synapse0x56347fcbc5b0(self):
101  return (self.neuron0x56347f686100()*1.90503)
102  def synapse0x56347fcbc5f0(self):
103  return (self.neuron0x56347e5ff2d0()*-0.583043)
104  def synapse0x56347fcbc7e0(self):
105  return (self.neuron0x56347f6fd7e0()*2.20077)
106  def synapse0x56347fcbc820(self):
107  return (self.neuron0x56347f686100()*2.67235)
108  def synapse0x56347fcbc860(self):
109  return (self.neuron0x56347e5ff2d0()*-0.0941155)
110  def synapse0x56347fcbd0f0(self):
111  return (self.neuron0x56347f6fd7e0()*-0.760104)
112  def synapse0x56347fcbd130(self):
113  return (self.neuron0x56347f686100()*0.276583)
114  def synapse0x56347fcbd170(self):
115  return (self.neuron0x56347e5ff2d0()*1.43785)
116  def synapse0x56347fcbd4f0(self):
117  return (self.neuron0x56347de70050()*-1.4858)
118  def synapse0x56347fcbd530(self):
119  return (self.neuron0x56347e9112c0()*1.95752)
120  def synapse0x56347fcbd570(self):
121  return (self.neuron0x56347e5e3ba0()*0.652551)
122  def synapse0x56347fcbd5b0(self):
123  return (self.neuron0x56347e8f0210()*-1.80537)
124  def synapse0x56347fcbd5f0(self):
125  return (self.neuron0x56347fcbc8a0()*1.31326)
126  def synapse0x56347fcbd8e0(self):
127  return (self.neuron0x56347de70050()*-0.704187)
128  def synapse0x56347fcbd920(self):
129  return (self.neuron0x56347e9112c0()*-0.393779)
130  def synapse0x56347fcbd960(self):
131  return (self.neuron0x56347e5e3ba0()*0.801485)
132  def synapse0x56347fcbd9a0(self):
133  return (self.neuron0x56347e8f0210()*1.30278)
134  def synapse0x56347fcbd9e0(self):
135  return (self.neuron0x56347fcbc8a0()*0.344546)
136  def synapse0x56347fcbdd60(self):
137  return (self.neuron0x56347de70050()*-0.466708)
138  def synapse0x56347fcbdda0(self):
139  return (self.neuron0x56347e9112c0()*1.48664)
140  def synapse0x56347fcbdde0(self):
141  return (self.neuron0x56347e5e3ba0()*-0.273034)
142  def synapse0x56347fcbde20(self):
143  return (self.neuron0x56347e8f0210()*-1.75021)
144  def synapse0x56347fcbde60(self):
145  return (self.neuron0x56347fcbc8a0()*0.867076)
146  def synapse0x56347fcbe1e0(self):
147  return (self.neuron0x56347fcbd1b0()*2.73311)
148  def synapse0x56347fcbe220(self):
149  return (self.neuron0x56347fcbd630()*1.23742)
150  def synapse0x56347fcbe260(self):
151  return (self.neuron0x56347fcbda20()*0.984127)
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