コード例 #1
0
ファイル: examples.py プロジェクト: mschachter/notebooks
def simple_example():
    
    simple_upg = create_2node_graph()
    print simple_upg  
    sp = SumProduct(simple_upg)    
    
    while not sp.blocked:
        sp.iterate()
    
    sp.print_marginals()
コード例 #2
0
ファイル: examples.py プロジェクト: mschachter/notebooks
def medium_example():
    
    upg = create_3node_graph()
    print upg  
    sp = SumProduct(upg)    
    
    while not sp.blocked:
        sp.iterate()
    
    sp.print_marginals()
コード例 #3
0
ファイル: examples.py プロジェクト: mschachter/notebooks
def problem_3b():
    
    upg = create_problem3b_graph()
    print upg
        
    sp = SumProduct(upg)    
    
    while not sp.blocked:
        sp.iterate()
    
    sp.print_marginals()