def METHOD_NAME():
    """Test the one hot encoding."""
    y = np.array([0, 0, 1, 0, 1, 1, 0])
    y_hot = to_one_hot(y)
    expected = np.array([[1, 0], [1, 0], [0, 1], [1, 0], [0, 1], [0, 1], [1,
                                                                          0]])
    yp = from_one_hot(y_hot)
    assert np.array_equal(expected, y_hot)
    assert np.array_equal(y, yp)