diff --git a/c/lib/mlrmath.c b/c/lib/mlrmath.c index 918a0d567..8ae695d8a 100644 --- a/c/lib/mlrmath.c +++ b/c/lib/mlrmath.c @@ -348,8 +348,8 @@ static void mlr_logistic_regression_aux(double* xs, double* ys, int n, double* p // Check for convergence double err = fabs(ell - ell0); -#if 0 - printf("its=%d,m=%e,b=%e,ell=%e\n", its, m0, b0, ell); +#if 1 + printf("its=%d,m=%e,b=%e,dm=%e,db=%e,ell=%e\n", its, m0, b0, -Hinvgradm, -Hinvgradb, ell); #endif if (err < tol) @@ -370,8 +370,8 @@ static void mlr_logistic_regression_aux(double* xs, double* ys, int n, double* p } void mlr_logistic_regression(double* xs, double* ys, int n, double* pm, double* pb) { - double m0 = -0.001; - double b0 = 0.002; + double m0 = 0.001; + double b0 = -0.002; double tol = 1e-9; int maxits = 100; mlr_logistic_regression_aux(xs, ys, n, pm, pb, m0, b0, tol, maxits); diff --git a/c/todo.txt b/c/todo.txt index 10f69700d..20071f206 100644 --- a/c/todo.txt +++ b/c/todo.txt @@ -14,6 +14,13 @@ BUGFIXES ================================================================ TOP OF LIST +* make a 2.3.2 + - filter -x + - logireg w/ caveat + - stats2 hold-and-fit + - improved heterogeneity for sort,stats1,stats2,step,head,tail,top,sample,uniq,count-distinct + - implicit-csv-header feature + ! join on partial value-field matches MINOR: star-put fcn (for cheesy bar-charts) w/ min/max