Belle II Software  release-08-01-10
MultilayerPerceptron Class Reference
Inheritance diagram for MultilayerPerceptron:
Collaboration diagram for MultilayerPerceptron:

Public Member Functions

def __init__ (self, layers, name='mlp')
 
def from_list (cls, layers)
 
def initialize (self)
 
def __call__ (self, x)
 
def variables_to_writer (self, step, writer)
 

Public Attributes

 layers
 layer objs
 
 w
 weights
 
 b
 biases
 
 is_initialized
 collect all mlp parameters
 

Private Member Functions

def _collect_weights_and_biases (self)
 

Detailed Description

multilayer perceptron class.

Definition at line 118 of file tensorflow_dnn_model.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  layers,
  name = 'mlp' 
)
initialization

Definition at line 123 of file tensorflow_dnn_model.py.

Member Function Documentation

◆ __call__()

def __call__ (   self,
  x 
)
Run the events through all the layers

Definition at line 181 of file tensorflow_dnn_model.py.

◆ _collect_weights_and_biases()

def _collect_weights_and_biases (   self)
private
collect tunable parameters

Definition at line 154 of file tensorflow_dnn_model.py.

◆ from_list()

def from_list (   cls,
  layers 
)
define layers from list

Definition at line 143 of file tensorflow_dnn_model.py.

◆ initialize()

def initialize (   self)
initialize. Checks that the layer dimensions align.

Definition at line 164 of file tensorflow_dnn_model.py.

◆ variables_to_writer()

def variables_to_writer (   self,
  step,
  writer 
)
passes all the MLP variables to the tf.summary writer

Definition at line 189 of file tensorflow_dnn_model.py.


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