pystruct.inference.
inference_ad3
(unary_potentials, pairwise_potentials, edges, relaxed=False, verbose=0, return_energy=False, branch_and_bound=False)[source]¶Inference with AD3 dual decomposition subgradient solver.
Parameters:  unary_potentials : ndarray, shape (n_nodes, n_nodes)
pairwise_potentials : ndarray, shape (n_states, n_states) or (n_states, n_states, n_edges).
edges : ndarray, shape (n_edges, 2)
relaxed : bool (default=False)
verbose : int (default=0)
return_energy : bool (default=False)
branch_and_bound : bool (default=False)


Returns:  labels : ndarray
