callbacks
callbacks¶
Collection of loggers that can be inserted into an optimizer as callback.
- class Callback[source]¶
Bases:
ABC
Interface for callbacks such as
CSVSummary
.See also
- class CallbackList(callbacks: Iterable[Callback])[source]¶
Bases:
Callback
Class for combining
Callback
s.Combine different
Callback
classes in to a chain as follows:>>> from tensorwaves.optimizer import Minuit2 >>> optimizer = Minuit2( ... callback=CallbackList([TFSummary(), YAMLSummary("fit_result.yml")]) ... )
- class CSVSummary(filename: Union[Path, str], function_call_step_size: int = 1, iteration_step_size: Optional[int] = None)[source]¶
-
Log fit parameters and the estimator value to a CSV file.
- class TFSummary(logdir: str = 'logs', step_size: int = 10, subdir: Optional[str] = None)[source]¶
Bases:
Callback
Log fit parameters and the estimator value to a
tf.summary
.The logs can be viewed with TensorBoard via:
tensorboard --logdir logs
- class YAMLSummary(filename: Union[Path, str], step_size: int = 10)[source]¶
-
Log fit parameters and the estimator value to a
tf.summary
.The logs can be viewed with TensorBoard via:
tensorboard --logdir logs