Skip to content

Commit

Permalink
Changing Print Threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek3141 committed Mar 25, 2019
1 parent a0eb90d commit b24010c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml/linear_regression/linear_regression.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ double* _fit(double* x, double* label, double* init_theta, int steps, double lr,
m = m - (lr * m_grad);
b = b - (lr * b_grad);

if(i % 50 == 0){
if(i % 300 == 0){
printf("Step: %d Cost %f\n", i, cost);
}
}
Expand Down

0 comments on commit b24010c

Please sign in to comment.