From b24010c189de9192edcbcc07e67b9811d627324d Mon Sep 17 00:00:00 2001 From: Vivek Verma Date: Sun, 24 Mar 2019 20:48:40 -0700 Subject: [PATCH] Changing Print Threshold --- ml/linear_regression/linear_regression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml/linear_regression/linear_regression.c b/ml/linear_regression/linear_regression.c index 7238d58..d19d7df 100644 --- a/ml/linear_regression/linear_regression.c +++ b/ml/linear_regression/linear_regression.c @@ -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); } }