You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use a class similar to SR3, and I attempted to replicate it by copying the available code from the GitHub repository. However, I am not obtaining the expected results. Specifically, I noticed that the regularization term differs by a factor of lambda × number of active terms, and I don’t understand why this discrepancy occurs.
Could this be related to a difference in versions? If so, which version should I be using to ensure consistency?
I am attaching the code I used along with the results I obtained. Any insights or guidance would be greatly appreciated!
I found the error: the stable version reads:
regularization = self.reg(coef_full, self.threshold**2 / self.nu) , while the latest version in GitHub reads:
regularization = self.reg(coef_full, self.reg_weight_lam)
Hello everyone,
I am trying to use a class similar to SR3, and I attempted to replicate it by copying the available code from the GitHub repository. However, I am not obtaining the expected results. Specifically, I noticed that the regularization term differs by a factor of lambda × number of active terms, and I don’t understand why this discrepancy occurs.
Could this be related to a difference in versions? If so, which version should I be using to ensure consistency?
I am attaching the code I used along with the results I obtained. Any insights or guidance would be greatly appreciated!
Thanks in advance!
Beatriz
results:
Iteration ... |y - Xw|^2 ... |w-u|^2/v ... R(u) ... Total Error: |y-Xw|^2 + |w-u|^2/v + R(u)
0 ... 3.9650e-05 ... 4.0205e-02 ... 3.0814e-02 ... 7.1058e-02
10 ... 1.6021e-02 ... 3.0389e-02 ... 1.8734e-02 ... 6.5143e-02
20 ... 1.6307e-02 ... 2.7490e-02 ... 1.4771e-02 ... 5.8568e-02
30 ... 1.4109e-02 ... 2.5248e-02 ... 1.2624e-02 ... 5.1981e-02
40 ... 1.5152e-02 ... 2.1159e-02 ... 1.0773e-02 ... 4.7084e-02
50 ... 1.3493e-02 ... 1.6753e-02 ... 1.0492e-02 ... 4.0738e-02
(x)' = -2.001 x + 1.001 y^2
(y)' = 1.000 x + -0.350 y
Iteration ... |y - Xw|^2 ... |w-u|^2/v ... R(u) ... Total Error: |y-Xw|^2 + |w-u|^2/v + R(u)
0 ... 3.9650e-05 ... 4.0205e-02 ... 6.1627e-01 ... 6.5652e-01
10 ... 1.6021e-02 ... 3.0389e-02 ... 3.7467e-01 ... 4.2108e-01
20 ... 1.6307e-02 ... 2.7490e-02 ... 2.9542e-01 ... 3.3922e-01
30 ... 1.4109e-02 ... 2.5248e-02 ... 2.5248e-01 ... 2.9184e-01
40 ... 1.5152e-02 ... 2.1159e-02 ... 2.1546e-01 ... 2.5177e-01
50 ... 1.3493e-02 ... 1.6753e-02 ... 2.0984e-01 ... 2.4008e-01
(x)' = -2.001 x + 1.001 y^2
(y)' = 1.000 x + -0.350 y
code:
The text was updated successfully, but these errors were encountered: