Skip to content

Commit e0da05a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 94cef51 commit e0da05a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

machine_learning/linear_regression.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def collect_dataset():
1919
"""
2020
try:
2121
response = requests.get(
22-
"https://raw.githubusercontent.com/yashLadha/The_Math_of_Intelligence/"
23-
"master/Week1/ADRvsRating.csv",
24-
timeout=10,
22+
"https://raw.githubusercontent.com/yashLadha/The_Math_of_Intelligence/"
23+
"master/Week1/ADRvsRating.csv",
24+
timeout=10,
2525
)
2626
lines = response.text.splitlines()
2727
data = []
@@ -39,6 +39,7 @@ def collect_dataset():
3939
print(f"Unexpected error: {e}")
4040
return None
4141

42+
4243
def run_steep_gradient_descent(data_x, data_y, len_data, alpha, theta):
4344
"""Run steep gradient descent and updates the Feature vector accordingly_
4445
:param data_x : contains the dataset
@@ -119,10 +120,9 @@ def main():
119120
for i in range(len_result):
120121
print(f"{theta[0, i]:.5f}")
121122

123+
122124
import doctest
125+
123126
if __name__ == "__main__":
124127
main()
125128
doctest.testmod()
126-
127-
128-

0 commit comments

Comments
 (0)