Mercurial > hg > octave-nkf
comparison scripts/statistics/models/logistic_regression.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | d1978e7364ad |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11471:994e2a93a8e2 | 11472:1740012184f9 |
---|---|
94 if (nargin < 2) | 94 if (nargin < 2) |
95 x = zeros (my, 0); | 95 x = zeros (my, 0); |
96 endif; | 96 endif; |
97 [mx, nx] = size (x); | 97 [mx, nx] = size (x); |
98 if (mx != my) | 98 if (mx != my) |
99 error ("logistic_regression: x and y must have the same number of observations"); | 99 error ("logistic_regression: X and Y must have the same number of observations"); |
100 endif | 100 endif |
101 | 101 |
102 ## initial calculations | 102 ## initial calculations |
103 x = -x; | 103 x = -x; |
104 tol = 1e-6; incr = 10; decr = 2; | 104 tol = 1e-6; incr = 10; decr = 2; |