

def test_directional_bars():
    (X, Y) = generate_easy(n_samples=20, noise=2, box_size=2, total_size=6, seed=2)
    n_labels = 2
    crf = LatentDirectionalGridCRF(n_labels=n_labels, n_states_per_label=[1, 4])
    clf = SubgradientLatentSSVM(model=crf, max_iter=75, C=10.0, learning_rate=1, momentum=0, decay_exponent=0.5, decay_t0=10)
    clf.fit(X, Y)
    Y_pred = clf.predict(X)
    assert_array_equal(np.array(Y), Y)

dataset/ETHPy150Open pystruct/pystruct/pystruct/tests/test_learners/test_subgradient_latent_svm.py test_directional_bars/VarMisuse@116/152 `Y_pred`->`Y`