Fixed rls numerical instability.

This commit is contained in:
Davis King 2016-11-09 10:30:16 -05:00
parent b1909d5cc0
commit 8b87257103
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ namespace dlib
add_eye_to_inv(R, (1-forget_factor)/C);
// 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));
++cnt;