예제 #1
0
def test_linear_regression_simple_vertical():
    result = linear_regression.linear_regression_vertical(Data.x, Data.y)
    _test_linreg(result)
예제 #2
0
def test_linear_regression_no_y_arr_vertical():
    x = numpy.array(list(zip(Data.x, Data.y)))
    result = linear_regression.linear_regression_vertical(x)
    _test_linreg(result)
예제 #3
0
def test_linear_regression_shape_exception_vertical():
    with pytest.raises(TypeError):
        linear_regression.linear_regression_vertical(Data.x)
예제 #4
0
def test_linear_regression_no_y_list_vertical():
    x = list(zip(Data.x, Data.y))
    result = linear_regression.linear_regression_vertical(x)
    _test_linreg(result)