We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254b9bf commit 97eb853Copy full SHA for 97eb853
machine_learning/ridge_regression/test_ridge_regression.py
@@ -11,7 +11,8 @@
11
python -m doctest test_ridge_regression.py -v
12
"""
13
14
-# from machine_learning.ridge_regression import RidgeRegression
+import numpy as np # noqa: F401
15
+from ridge_regression import RidgeRegression # noqa: F401
16
17
18
def test_feature_scaling():
@@ -37,8 +38,8 @@ def test_fit():
37
38
Tests the fit function of RidgeRegression
39
--------
40
>>> model = RidgeRegression(alpha=0.01,
- regularization_param=0.1,
41
- num_iterations=1000)
+ ... regularization_param=0.1,
42
+ ... num_iterations=1000)
43
>>> X = np.array([[1], [2], [3]])
44
>>> y = np.array([2, 3, 4])
45
@@ -59,8 +60,8 @@ def test_predict():
59
60
Tests the predict function of RidgeRegression
61
62
63
64
65
66
67
0 commit comments