pystruct.inference.inference_qpbo

pystruct.inference.inference_qpbo(unary_potentials, pairwise_potentials, edges)

Inference with PyQPBO backend.

Used QPBO-I based move-making for undergenerating inference.

Parameters :

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.

Returns :

labels : nd-array

Approximate (usually) MAP variable assignment.