Belle II Software  release-08-01-10
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 

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