Inference with LibDAI backend.
unary_potentials : nd-array
Unary potentials of energy function.
pairwise_potentials : nd-array
Pairwise potentials of energy function.
edges : nd-array
Edges of energy function.
alg : string, (default=’jt’)
Inference algorithm to use. Defaults to Junction Tree. THIS WILL BLOW UP for loopy graphs.
labels : nd-array
Approximate (usually) MAP variable assignment.
pystruct.inference.inference_qpbo
pystruct.inference.inference_lp