Commit 8b872571 authored by Davis King's avatar Davis King

Fixed rls numerical instability.

parent b1909d5c
...@@ -102,7 +102,7 @@ namespace dlib ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment