VariableValue#

class pinnx.callbacks.VariableValue(var_list, period=1, filename=None, precision=2)[source]#

Get the variable values.

Parameters:
  • var_list – A TensorFlow Variable or a list of TensorFlow Variable.

  • period (int) – Interval (number of epochs) between checking values.

  • filename (string) – Output the values to the file filename. The file is kept open to allow instances to be re-used. If None, output to the screen.

  • precision (int) – The precision of variables to display.

get_value()[source]#

Return the variable values.

on_epoch_end()[source]#

Called at the end of every epoch.

on_train_begin()[source]#

Called at the beginning of trainer training.

on_train_end()[source]#

Called at the end of trainer training.