![]() |
Belle II Software
release-06-02-00
|
Public Member Functions | |
def | __init__ (self, mlp, mom_init=.9, mom_max=.99, mom_epochs=200, lr_init=.05, lr_min=1e-6, lr_dec_rate=.976, stop_epochs=10, min_epochs=200, max_epochs=1000, wd_coeffs=None, change_optimizer=None, staircase=True, smooth_cross_entropy=False) |
def | get_minimizer (self, epoch=0) |
def | initialize (self, data_set, input_placeholders=None) |
Public Attributes | |
wd_coeffs | |
weight decay coefficients | |
mlp | |
network model | |
output | |
output | |
global_step | |
global step | |
c_mom_init | |
initial momentum | |
c_mom_max | |
maximum momentum | |
c_mom_epochs | |
momentum epochs | |
c_lr_init | |
initial learning rate | |
c_lr_min | |
minimal learning rate | |
c_lr_dec_rate | |
learning rate decay factor | |
c_stop_epochs | |
number of epochs until stopping | |
c_staircase | |
use staircase | |
batches_per_epoch | |
batches per epoch unknown. More... | |
optimizers | |
define multiple optimizers | |
optimizer_change_epochs | |
used opimizers | |
monitoring_params | |
params for monitoring | |
monitoring_labels | |
params for labeling | |
mon_dict | |
further monitoring variables | |
x | |
variable space must be known | |
y_ | |
targets | |
weights | |
weights | |
max_epochs | |
other variables | |
min_epochs | |
min epochs | |
termination_criterion | |
termination criterion | |
recent_params | |
recent params | |
best_value | |
the best value will be set a default start value, then updated with the termination criterion | |
step_countdown | |
step countdown | |
smooth_cross_entropy | |
True for a small epsilon addition, false for a clipped network output. | |
is_initialized | |
check if initialized | |
loss | |
cross entropy with weight decay | |
Private Member Functions | |
def | _set_optimizer (self) |
def | _set_loss (self) |
def | _set_monitoring_params (self) |
def | _default_termination_criterion (self, monitoring_params, epoch, label_name='mean_cross_entropy', prop_dec=1e-5) |
define the default model
Definition at line 218 of file tensorflow_dnn_model.py.
def __init__ | ( | self, | |
mlp, | |||
mom_init = .9 , |
|||
mom_max = .99 , |
|||
mom_epochs = 200 , |
|||
lr_init = .05 , |
|||
lr_min = 1e-6 , |
|||
lr_dec_rate = .976 , |
|||
stop_epochs = 10 , |
|||
min_epochs = 200 , |
|||
max_epochs = 1000 , |
|||
wd_coeffs = None , |
|||
change_optimizer = None , |
|||
staircase = True , |
|||
smooth_cross_entropy = False |
|||
) |
initialization function
Definition at line 223 of file tensorflow_dnn_model.py.
|
private |
:param monitoring_params: :param epoch: :param label_name: :param steps: :param prop_dec: :return:
Definition at line 422 of file tensorflow_dnn_model.py.
|
private |
set loss
Definition at line 361 of file tensorflow_dnn_model.py.
|
private |
sets monitoring params
Definition at line 397 of file tensorflow_dnn_model.py.
|
private |
set optimizer
Definition at line 318 of file tensorflow_dnn_model.py.
def get_minimizer | ( | self, | |
epoch = 0 |
|||
) |
get minimizer
Definition at line 450 of file tensorflow_dnn_model.py.
def initialize | ( | self, | |
data_set, | |||
input_placeholders = None |
|||
) |
initialized
Definition at line 467 of file tensorflow_dnn_model.py.
batches_per_epoch |
batches per epoch unknown.
needs to be set with initialize
Definition at line 269 of file tensorflow_dnn_model.py.