Skip to content

Commit 6d99537

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3d13432 commit 6d99537

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

machine_learning/linear_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def sum_of_square_error(data_x, data_y, theta):
4646
n = data_x.shape[0]
4747
predictions = data_x @ theta.T
4848
errors = predictions.flatten() - data_y
49-
return np.sum(errors ** 2) / (2 * n)
49+
return np.sum(errors**2) / (2 * n)
5050

5151

5252
def run_linear_regression(data_x, data_y, iterations=100000, alpha=0.000155):

0 commit comments

Comments
 (0)