BayesNets currently implements all CPDs as functions. If you try to save a BN using HDF5/JLD it will fail, as functions contain pointers which cannot be saved to a file.
Recommend creating additional CPD types that internally use dicts or something similar instead.
CPSs can now be defined using dicts instead of a stored anonymous function, so this issue is resolved.
We may want to address the functions as fields things moving forward, however.
BayesNets currently implements all CPDs as functions. If you try to save a BN using HDF5/JLD it will fail, as functions contain pointers which cannot be saved to a file. Recommend creating additional CPD types that internally use dicts or something similar instead.