Could we have a default x_init automatically set to the zero image of appropriate size? We almost always use that and would save the user from worrying about allocating one. Of course should allow to pass an x_init if desired.
________________________________________
From: Mailing list for software developers of the CCP in Tomographic Imaging [[log in to unmask]] on behalf of Edoardo Pasca - UKRI STFC [[log in to unmask]]
Sent: 11 October 2019 15:46
To: [log in to unmask]
Subject: New algorithm init
Hi all
with PR 380 https://github.com/vais-ral/CCPi-Framework/pull/380 I changed slightly the init of the algorithms.
It is backward compatible so it doesn’t change anything in your scripts but makes things slightly more convenient.
It is now possible to do this
alg = GradientDescent(x_init, f, data, max_iteration=100, update_objective_interval=10)
rather than specifying them later. Notice that you can always do as before
alg.max_iteration = 101
alg.update_objective_interval = 20
Edo
--
Edoardo Pasca, PhD
Senior Visualisation Scientist
Scientific Computing Department, STFC Rutherford Appleton Laboratory
Fermi Avenue Chilton Didcot OX11 0QX
0044 (0)1235 44 5660, R89 F16
:wq
________________________________
To unsubscribe from the CCPI-DEVEL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPI-DEVEL&A=1
########################################################################
To unsubscribe from the CCPI-DEVEL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPI-DEVEL&A=1
|