probcomp / cgpm

Library of composable generative population models which serve as the modeling and inference backend of BayesDB.
Apache License 2.0
25 stars 11 forks source link

Cannot serialize state with a conditional dim #228

Closed fsaad closed 7 years ago

fsaad commented 7 years ago

https://github.com/probcomp/cgpm/blob/91cd8f7f6fce769d7e57f2b33bee2be6cd12ca3b/src/mixtures/view.py#L120-L121

The error actually happens when constructing the Dim in the previous statement, since a conditional dim expects to have inputs.

fsaad commented 7 years ago

Fixed on branch via https://github.com/probcomp/cgpm/commit/2ccc38ab8eb99fc595fc601ab1222b6bc1c2b49f