sisl / BayesNets.jl

Bayesian Networks for Julia
Other
218 stars 48 forks source link

BNs cannot be saved using HDF5 / JLD #11

Closed tawheeler closed 8 years ago

tawheeler commented 9 years ago

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.

tawheeler commented 8 years ago

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.