You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error after installing this package. Can you tell me what I need to do?
`TypeError Traceback (most recent call last)
in ()
39 # Perform sum-product algorithm on factor graph
40 # and request belief of variable node x4
---> 41 belief = inference.sum_product(fg, x4)
42
43 # Print belief of variables
~\Downloads\BitBucket\python\FGlib\fglib\inference.py in sum_product(graph, query_node)
61
62 # Sum-Product algorithm is equivalent to Belief Propagation
---> 63 return belief_propagation(graph, query_node)
64
65
~\Downloads\BitBucket\python\FGlib\fglib\inference.py in belief_propagation(graph, query_node)
49
50 # Return marginal distribution
---> 51 return query_node.belief()
52
53
~\Downloads\BitBucket\python\FGlib\fglib\nodes.py in belief(self, normalize)
132
133 # Pick first node
--> 134 n = next(iterator)
135
136 # Product over all incoming messages
TypeError: 'list' object is not an iterator`
The text was updated successfully, but these errors were encountered:
Dear Author,
I got this error after installing this package. Can you tell me what I need to do?
`TypeError Traceback (most recent call last)
in ()
39 # Perform sum-product algorithm on factor graph
40 # and request belief of variable node x4
---> 41 belief = inference.sum_product(fg, x4)
42
43 # Print belief of variables
~\Downloads\BitBucket\python\FGlib\fglib\inference.py in sum_product(graph, query_node)
61
62 # Sum-Product algorithm is equivalent to Belief Propagation
---> 63 return belief_propagation(graph, query_node)
64
65
~\Downloads\BitBucket\python\FGlib\fglib\inference.py in belief_propagation(graph, query_node)
49
50 # Return marginal distribution
---> 51 return query_node.belief()
52
53
~\Downloads\BitBucket\python\FGlib\fglib\nodes.py in belief(self, normalize)
132
133 # Pick first node
--> 134 n = next(iterator)
135
136 # Product over all incoming messages
TypeError: 'list' object is not an iterator`
The text was updated successfully, but these errors were encountered: