In the QHBM Library design doc, @geoffreyroeder described a refactor of the EBM module. The refactor has two main goals: unbundle model specification and model inference; have our probability distributions inherit from tfp.Distribution to allow routines from tfp to be applied directly to QHBMs.
qhbmlib now has structural support for user-specified TFP distributions: they can be embedded in EnergyInference layers, as Categorical and Bernoulli were in #111
In the QHBM Library design doc, @geoffreyroeder described a refactor of the EBM module. The refactor has two main goals: unbundle model specification and model inference; have our probability distributions inherit from tfp.Distribution to allow routines from tfp to be applied directly to QHBMs.