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

No "lambda_" in the definition of norm_tv() #42

Open
jacquesdurden opened this issue May 11, 2022 · 5 comments
Open

No "lambda_" in the definition of norm_tv() #42

jacquesdurden opened this issue May 11, 2022 · 5 comments

Comments

@jacquesdurden
Copy link

Dear developers, it seems that the parameter lambda_ has been forgotten from the definition of norm_tv (as visible from here). Is it programmed like this on purpose?

@nperraud
Copy link
Collaborator

Hi @jacquesdurden ,
I think this parameter is inherited from the class norm.
See:

def __init__(self, lambda_=1, w=1, **kwargs):

@jacquesdurden
Copy link
Author

jacquesdurden commented May 12, 2022

Yes you right but inheritance is not enough here. In particular, if you set it, conversely to other norms, it has no effect, see the screenshot below. (not showed below, but the effect is the same on the proximal operator)
7XeDCnQeDSgVqjbn

@nperraud
Copy link
Collaborator

Well I call this a bug. Thanks for spotting and reporting it.

@jacquesdurden
Copy link
Author

I guess this amounts to simply inserting a "gamma=self.step*lambda_" at the right places in norm_tv's code

@nperraud
Copy link
Collaborator

yes, we have to replace T by gamma where gamma = self.lambda_ * T.
this also require to write some tests to be sure that everything is correct. I am not sure when I will have the time to do.
this.
If you want, you are welcome to submit a PR. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants