Skip to content

Commit 2b5fbf9

Browse files
committed
Fix sample count in linear regression
1 parent 25c712f commit 2b5fbf9

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
@@ -97,7 +97,7 @@ def run_linear_regression(data_x, data_y):
9797
alpha = 0.0001550
9898

9999
no_features = data_x.shape[1]
100-
len_data = data_x.shape[0] - 1
100+
len_data = data_x.shape[0]
101101

102102
theta = np.zeros((1, no_features))
103103

0 commit comments

Comments
 (0)