comparison scripts/statistics/models/private/logistic_regression_derivatives.m @ 23084:ef4d915df748

maint: Merge stable to default.
author John W. Eaton <jwe@octave.org>
date Mon, 23 Jan 2017 14:27:48 -0500
parents 3a2b891d0b33 e9a0469dedd9
children 092078913d54
comparison
equal deleted inserted replaced
23081:7485462a6924 23084:ef4d915df748
40 w = v .* (1 - 2 * g); w1 = v1 .* (1 - 2 * g1); 40 w = v .* (1 - 2 * g); w1 = v1 .* (1 - 2 * g1);
41 d2l = [z, x]' * diag (w) * [z, x] - [z1, x]' * diag (w1) * [z1, x] ... 41 d2l = [z, x]' * diag (w) * [z, x] - [z1, x]' * diag (w1) * [z1, x] ...
42 - dlogp' * dlogp; 42 - dlogp' * dlogp;
43 43
44 endfunction 44 endfunction
45