diff options
author | Cathy Yeh <cathy@driver.xyz> | 2017-12-12 19:58:12 -0800 |
---|---|---|
committer | Cathy Yeh <cathy@driver.xyz> | 2017-12-13 18:45:03 -0800 |
commit | b3b8bb68d6d590175a07dfc4022b4903d63222e5 (patch) | |
tree | dc4377a608e172994c773cdf4ebf079c104cfeed /beliefs/factors/bernoulli_or_cpd.py | |
parent | 2f4de4ae0b28e0e5ee2a5be6955366267fbc2404 (diff) | |
download | beliefs-b3b8bb68d6d590175a07dfc4022b4903d63222e5.tar.gz beliefs-b3b8bb68d6d590175a07dfc4022b4903d63222e5.tar.bz2 beliefs-b3b8bb68d6d590175a07dfc4022b4903d63222e5.zip |
Bernoulli Or/And Node access msg values by state names
Diffstat (limited to 'beliefs/factors/bernoulli_or_cpd.py')
-rw-r--r-- | beliefs/factors/bernoulli_or_cpd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/beliefs/factors/bernoulli_or_cpd.py b/beliefs/factors/bernoulli_or_cpd.py index 6e01cf9..5b661a1 100644 --- a/beliefs/factors/bernoulli_or_cpd.py +++ b/beliefs/factors/bernoulli_or_cpd.py @@ -20,7 +20,7 @@ class BernoulliOrCPD(TabularCPD): variable_card=2, parents=parents, parents_card=[2]*len(parents), - values=[], + values=None, state_names={var: ['False', 'True'] for var in [variable] + parents}) self._values = None |