Belle II Software light-2406-ragdoll
State Class Reference

Public Member Functions

def __init__ (self, x=None, y=None, params=None, cost=None, updates=None, train_function=None, eval_function=None)
 

Public Attributes

 x
 theano shared variable x
 
 y
 theano shared variable y
 
 params
 model params
 
 cost
 model cost
 
 updates
 model grad updates
 
 train_function
 theano function for training
 
 eval_function
 theano function for evaluation
 

Detailed Description

State class for proper handling of parameters and data during function calls. This is a very brief theano example.

Definition at line 22 of file theano.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  x = None,
  y = None,
  params = None,
  cost = None,
  updates = None,
  train_function = None,
  eval_function = None 
)
Constructor of the State class

Definition at line 27 of file theano.py.

27 def __init__(self, x=None, y=None, params=None, cost=None, updates=None, train_function=None, eval_function=None):
28 """
29 Constructor of the State class
30 """
31 # TODO: make serializable with __getstate__(), __setstate__()
32
33 self.x = x
34
35 self.y = y
36
37
38 self.params = params
39
40 self.cost = cost
41
42
43 self.updates = updates
44
45
46 self.train_function = train_function
47
48 self.eval_function = eval_function
49
50

Member Data Documentation

◆ cost

cost

model cost

Definition at line 40 of file theano.py.

◆ eval_function

eval_function

theano function for evaluation

Definition at line 48 of file theano.py.

◆ params

params

model params

Definition at line 38 of file theano.py.

◆ train_function

train_function

theano function for training

Definition at line 46 of file theano.py.

◆ updates

updates

model grad updates

Definition at line 43 of file theano.py.

◆ x

x

theano shared variable x

Definition at line 33 of file theano.py.

◆ y

y

theano shared variable y

Definition at line 35 of file theano.py.


The documentation for this class was generated from the following file: