mirror of https://github.com/davisking/dlib.git
Fixed rls numerical instability.
This commit is contained in:
parent
b1909d5cc0
commit
8b87257103
|
@ -102,7 +102,7 @@ namespace dlib
|
||||||
add_eye_to_inv(R, (1-forget_factor)/C);
|
add_eye_to_inv(R, (1-forget_factor)/C);
|
||||||
|
|
||||||
// R should always be symmetric. This line improves numeric stability of this algorithm.
|
// R should always be symmetric. This line improves numeric stability of this algorithm.
|
||||||
if (cnt%100 == 0)
|
if (cnt%10 == 0)
|
||||||
R = 0.5*(R + trans(R));
|
R = 0.5*(R + trans(R));
|
||||||
++cnt;
|
++cnt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue