Belle II Software  release-06-01-15
State Class Reference
Inheritance diagram for State:
Collaboration diagram for State:

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 23 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 28 of file theano.py.

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

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