def inference_unaries(unary_potentials, pairwise_potentials, edges, verbose=0,
                      **kwargs):
    n_states, pairwise_potentials = \
        _validate_params(unary_potentials, pairwise_potentials, edges)

    unaries = unary_potentials.reshape(-1, n_states)
    return np.argmax(unaries, axis=-1)
Runs the grooming process. Loops on the entire dataset sequentially
dataset/ETHPy150Open pystruct/pystruct/pystruct/inference/inference_methods.py/inference_unaries--crossover with--dataset/ETHPy150Open AppScale/appscale/AppDB/groomer.py/DatastoreGroomer.run_groomer