def inference_qpbo(unary_potentials, pairwise_potentials, edges, **kwargs):

    from pyqpbo import alpha_expansion_general_graph
    shape_org = unary_potentials.shape[:-1]
    n_states, pairwise_potentials = \
        _validate_params(unary_potentials, pairwise_potentials, edges)

    unary_potentials = (-1000 * unary_potentials).copy().astype(np.int32)
    unary_potentials = unary_potentials.reshape(-1, n_states)
    pairwise_potentials = (-1000 * pairwise_potentials).copy().astype(np.int32)
    edges = edges.astype(np.int32).copy()
    y = alpha_expansion_general_graph(edges, unary_potentials,
                                      pairwise_potentials, random_seed=1)
    return y.reshape(shape_org)
.pkginfo_from_file with no extension
dataset/ETHPy150Open pystruct/pystruct/pystruct/inference/inference_methods.py/inference_qpbo--crossover with--dataset/ETHPy150Open SMFOSS/CheesePrism/tests/test_index.py/ClassOrStaticMethods.test_pkginfo_from_no_ext