Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 713d94e

Browse files
committedSep 15, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2da4728 commit 713d94e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎machine_learning/linear_regression.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def run_steep_gradient_descent(data_x, data_y, len_data, alpha, theta):
5454
return theta
5555

5656

57-
5857
def sum_of_square_error(data_x, data_y, len_data, theta):
5958
"""Return sum of square error for error calculation
6059
:param data_x : contains our dataset
@@ -95,7 +94,6 @@ def run_linear_regression(data_x, data_y):
9594
return theta
9695

9796

98-
9997
def mean_absolute_error(predicted_y, original_y):
10098
"""Return sum of square error for error calculation
10199
:param predicted_y : contains the output of prediction (result vector)
@@ -131,6 +129,5 @@ def main():
131129
print(f"Error in main execution: {e}")
132130

133131

134-
135132
if __name__ == "__main__":
136133
main()

0 commit comments

Comments
 (0)
Please sign in to comment.