synthcity.plugins.core.models.mbi.callbacks module
- class CallBack(engine, frequency=50)
Bases:
object
A CallBack is a function called after every iteration of an iterative optimization procedure It is useful for tracking loss and other metrics over time.
- run(marginals)
- class Logger(engine, true_answers=None, frequency=50)
Bases:
synthcity.plugins.core.models.mbi.callbacks.CallBack
Logger is the default callback function. It tracks the time, L1 loss, L2 loss, and optionally the total variation distance to the true query answers (when available). The last is for debugging purposes only - in practice the true answers can not be observed.
- primal_feasibility(mu)
- run(marginals)
- setup()
- variational_distances(marginals)