entropy differs after copying nested blockmodel state
I have code like the following:
state = minimize_nested_blockmodel_dl(graph_, deg_corr=True, state_args=state_args, B_min=self.min_groups, B_max=self.max_groups) assert np.isclose(mdl, state.entropy()) state_ = state.copy() mdl_ = mdl assert np.isclose(mdl, state_.entropy())
The second assertion fails, while the first passes.
Sorry I have not yet constructed a MCVE, but this is the failing assertion: https://github.com/vijayr1912/hSBM-Decomposition/blob/2a96d0edd4454891a95c22e6bc8b7d39b992df65/topsbm/tests/test_common.py#L28
>>> graph_tool.__version__ '2.26 (commit b89e6b4e, Thu Nov 9 14:55:43 2017 +0000)'
(This appears to not be the latest release, but is the latest on flyem-forge. Do you have plans to get this - and dependencies - onto conda-forge?)