@staticmethod
def infer(model, options=None):
    'Runs inference BP algorithm for given model.\n\n        Supports all options which libdai::BP supports. Refer to libDAI\n        documentation for options descritpion.\n        '
    if (options is None):
        options = {'tol': 1e-09, 'logdomain': 0, 'updates': 'SEQRND'}
    inf_alg = BP(model, options)
    inf_alg.init()
    inf_alg.run()
    return InferenceResult(inf_alg.log_z(), inf_alg.marg_prob())
Runs inference BP algorithm for given model.

Supports all options which libdai::BP supports. Refer to libDAI
documentation for options descritpion.
@staticmethod
def infer(model, options=None):
    'Runs inference BP algorithm for given model.\n\n        Supports all options which libdai::BP supports. Refer to libDAI\n        documentation for options descritpion.\n        '
    if (options is None):
        options = {'tol': 1e-09, 'logdomain': 0, 'updates': 'SEQRND'}
    inf_alg = BP(model, options)
    inf_alg.init()
    inf_alg.run()
    return InferenceResult(inf_alg.log_z(), inf_alg.marg_prob())