Skip to content

Commit f9c0eb6

Browse files
committed
Changed tests
1 parent 8d0f300 commit f9c0eb6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_multiple_linear_regression.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ def test_initialization():
66
mr = MultipleLinearRegression()
77
assert isinstance(mr, MultipleLinearRegression)
88

9+
def test_test():
10+
mr = MultipleLinearRegression()
11+
912
def test_simple_fit_and_predict():
1013
mr = MultipleLinearRegression()
1114
coef = np.random.randn(2,1)
@@ -29,7 +32,7 @@ def test_multple_fit_and_predict():
2932

3033
x = np.random.randn(n_samples, n_features)
3134
y = bias + np.sum((weights * x), axis=1)
32-
35+
3336
yhat = mr.fit(x, y).predict(x)
3437

3538
assert np.isclose(mr.coef_, np.concatenate((np.array([bias]), weights))).all()
@@ -46,7 +49,7 @@ def test_evaluation():
4649

4750
x = np.random.randn(n_samples, n_features)
4851
y = bias + np.sum((weights * x), axis=1)
49-
52+
5053
mr.fit(x, y)
5154

52-
assert mr.evaluate(x, y)['score'] == 1
55+
assert mr.evaluate(x, y)['score'] == 1

0 commit comments

Comments
 (0)