예제 #1
0

@conditional_gaussian(1, 1, 1)
def f_b(a, b):
    '''Point b is a conditional Guassian
    with parent a.
    '''
    pass


@conditional_gaussian(3, 2, 2)
def f_c(a, c):
    '''Point c is a conditional Guassian
    with parent a'''
    pass


@conditional_gaussian(1, 1, betas=dict(b=1, c=1))
def f_d(b, c, d):
    pass


if __name__ == '__main__':

    g = build_graph(
        f_a,
        f_b,
        f_c,
        f_d)
    g.q()
def pytest_funcarg__river_graph(request):
    g = build_graph(f_a, f_b, f_c, f_d)
    return g
예제 #3
0
@gaussian(3, 2)
def f_a(a):
    '''represents point A in the river system'''
    pass


@conditional_gaussian(1, 1, 1)
def f_b(a, b):
    '''Point b is a conditional Guassian
    with parent a.
    '''
    pass


@conditional_gaussian(3, 2, 2)
def f_c(a, c):
    '''Point c is a conditional Guassian
    with parent a'''
    pass


@conditional_gaussian(1, 1, betas=dict(b=1, c=1))
def f_d(b, c, d):
    pass


if __name__ == '__main__':

    g = build_graph(f_a, f_b, f_c, f_d)
    g.q()
def pytest_funcarg__river_graph(request):
    g = build_graph(f_a, f_b, f_c, f_d)
    return g