Skip to content

Commit

Permalink
Merge pull request #3 from SyneRBI/SAGA_final-bugfix
Browse files Browse the repository at this point in the history
Bugfix fof SAGA_final
  • Loading branch information
paskino authored Oct 17, 2024
2 parents 74d8929 + a131cd9 commit cc53e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 266 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
>>> algorithm.run(np.inf, callbacks=metrics + submission_callbacks)
"""
#%%
import partitioner
from cil.optimisation.algorithms import ISTA, Algorithm
from cil.optimisation.functions import IndicatorBox, SAGAFunction
from cil.optimisation.utilities import (Preconditioner, Sampler,
StepSizeRule)
from sirf.contrib.partitioner import partitioner
from petric import Dataset
import numpy as np

Expand Down Expand Up @@ -246,7 +246,7 @@ def __init__(self, data: Dataset, update_objective_interval=10):
f = -FullGradientInitialiserFunction(obj_funs, sampler=sampler, init_steps=5)

preconditioner = BSREMPreconditioner(obj_funs, epsilon=data.OSEM_image.max()/1e6, freeze_iter=10*update_interval+5)
g = IndicatorBox(lower=0, accelerated=True) # non-negativity constraint
g = IndicatorBox(lower=0, accelerated=False) # non-negativity constraint

step_size_rule = ArmijoStepSearchRule(0.08, beta, decay, max_iter=100, tol=0.2, init_steps=5, update_interval=10*update_interval+5)

Expand Down
264 changes: 0 additions & 264 deletions partitioner.py

This file was deleted.

0 comments on commit cc53e86

Please sign in to comment.