graph_blockmodel_dynamics_cising_glauber_mcmc_h.cc is also missing
Thank you for the quick fix for issue#757, however I wanted to report that the continous Ising model CIsingGlauberBlockState
suffers from the same problem, so a graph_blockmodel_dynamics_cising_glauber_mcmc_h.cc
file should be added as well.
The minimal example to reproduce is analogous:
# We will first simulate the dynamics with a given network
g = gt.collection.data["dolphins"]
ss = []
for i in range(100):
si_state = gt.CIsingGlauberState(g, beta=.7)
s = [si_state.get_state().copy()]
for j in range(10):
si_state.iterate_sync()
s.append(si_state.get_state().copy())
s = gt.group_vector_property(s)
ss.append(s)
# Prepare the initial state of the reconstruction as an empty graph
u = g.copy()
u.clear_edges()
ss = [u.own_property(s) for s in ss] # time series properties need to be 'owned' by graph u
# Create reconstruction state
rstate = gt.CIsingGlauberBlockState(u, s=ss, beta=.7, nested=False, aE=g.num_edges())
gm = None
bs = []
def collect_marginals(s):
global gm, bs
gm = s.collect_marginal(gm)
bs.append(s.bstate.b.a.copy())
gt.mcmc_equilibrate(rstate, force_niter=1000, mcmc_args=dict(niter=10, xstep=0),
callback=collect_marginals)
with error: AttributeError: module 'graph_tool.inference.libgraph_tool_inference' has no attribute 'mcmc_cising_glauber_sweep_h'