Adding dual initialization for PDHG - #2169
Conversation
Signed-off-by: hsw43 <[email protected]>
Signed-off-by: hsw43 <[email protected]>
|
Many thanks for your contribution @hsw4! Initialising the dual will help make PDHG more flexible. We chatted about this in the developers meeting and thought that we would like to retain the original behaviour that if you pass
Are you happy to make this change or would you like us to do it? |
|
Sure, happy to make the change. |
Signed-off-by: hsw43 <[email protected]>
|
I have just updated the code. |
|
Many thanks @hsw43 and good spot for the SIRF ImageData |
lauramurgatroyd
left a comment
There was a problem hiding this comment.
This looks great, thanks for your contribution!
Please can you add your name and institution to the top of each file you have edited.
An example of how to do this:
CIL/Wrappers/Python/cil/io/ZEISSDataReader.py
Lines 16 to 18 in eae0392
One of us developers will also add you to the NOTICE.txt before merge
Signed-off-by: hsw43 <[email protected]>
paskino
left a comment
There was a problem hiding this comment.
I'm suggesting just a change in the docstring.
Co-authored-by: Edoardo Pasca <[email protected]> Signed-off-by: hsw43 <[email protected]>
Signed-off-by: hsw43 <[email protected]>
|
Many thanks @hsw43 for your contribution! |
Description
Adding dual initialization for PDHG
Example Usage
To initialize both primal and dual:
algo = PDHG(f=f,g=g,operator=A,tau=tau,sigma=sigma,update_objective_interval=1,initial=[x,y])
To only initialize primal:
algo = PDHG(f=f,g=g,operator=A,tau=tau,sigma=sigma,update_objective_interval=1,initial=x)
or
algo = PDHG(f=f,g=g,operator=A,tau=tau,sigma=sigma,update_objective_interval=1,initial=(x, None))
To only initialize dual:
algo = PDHG(f=f,g=g,operator=A,tau=tau,sigma=sigma,update_objective_interval=1,initial=(None, y))
❤️ Thanks for your contribution!
Changes
Testing you performed
Related issues/links
Checklist
Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.