GilesStrong / tomopt

TomOpt: Differential Muon Tomography Optimisation
GNU Affero General Public License v3.0
4 stars 0 forks source link

Learned budget assignments in Volume are softmax normalised #144

Open GilesStrong opened 2 years ago

GilesStrong commented 2 years ago

Volume.assign_budget takes the learned budget_weights [-inf,inf] and normalises them to sum to 1 via a softmax function. This has the advantage that the learnable parameters have no constraint on their values (i.e. don't have to be positive). It does however meant that there is a non-linear relationship between the learned values and the actual budget that each detector receives; which could lead to unpredictable/unexpected behaviour (e.g. panels suddenly becoming very large/small). Instead I think it might be worth investigating how well the optimisation handles clamping the parameters in [0,inf] and normalising by their sum.