Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved performance of SRLS. #21

Merged
merged 1 commit into from
Jul 16, 2018
Merged

Improved performance of SRLS. #21

merged 1 commit into from
Jul 16, 2018

Conversation

duembgen
Copy link
Collaborator

  • Improved solver choice of SRLS: if we find a good upper and lower bound we will use brentq (which is better than bisect), and if we don't we use newton as before.
  • Removed the epsilon from interval choice, which made the method not find a good zero sometimes. Now the method is more true to the SRLS paper.

@@ -148,32 +149,41 @@ def phi_prime(_lambda):
print('eigvals:', eigvals(ATA))
print('condition number:', np.linalg.cond(ATA))
print('generalized eigenvalues:', eig)
eps = 0.01

#eps = 0.01
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important change 1/2

lambda_opt = 0
# We will look for the zero of phi between lower_bound and inf.
# Therefore, the two have to be of different signs.
if (phi(lower_bound) > 0) and (phi(inf) < 0):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

important change 2/2

@duembgen duembgen merged commit 8a0d23f into master Jul 16, 2018
@duembgen duembgen deleted the fix/srls_performance branch July 16, 2018 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant