Exemplo n.º 1
0
def test_Hyperpipe_Data_yarray():
    test_value = np.array([0, 1, 2, 3])
    assert (Hyperpipe.Data(y=test_value).y == test_value).all()
Exemplo n.º 2
0
def test_Hyperpipe_Data_Xarray():
    test_value = np.ndarray((3, ), buffer=np.array([0, 1, 2, 3]), dtype=int)
    test_value = np.vstack([test_value, test_value])
    assert (Hyperpipe.Data(X=test_value).X == test_value).all()
Exemplo n.º 3
0
def test_Hyperpipe_Data_y():
    test_value = [0, 1, 2, 3]
    assert Hyperpipe.Data(y=test_value).y == test_value
Exemplo n.º 4
0
def test_Hyperpipe_Data_XEqNone():
    assert Hyperpipe.Data().X == None