Skip to content

add SARAH with tests#2274

Open
epapoutsellis wants to merge 2 commits intoTomographicImaging:masterfrom
epapoutsellis:sarah
Open

add SARAH with tests#2274
epapoutsellis wants to merge 2 commits intoTomographicImaging:masterfrom
epapoutsellis:sarah

Conversation

@epapoutsellis
Copy link
Contributor

Description

close #2273

Example Usage

Contribution Notes

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
  • I confirm that the contribution does not violate any intellectual property rights of third parties

❤️ Thanks for your contribution!

@github-project-automation github-project-automation bot moved this to Todo in UM 2026 Jan 29, 2026
@casperdcl casperdcl removed this from UM 2026 Jan 29, 2026
@gfardell gfardell added the community-contribution Community-submitted pull requests from contributors outside the core team. label Jan 30, 2026
from cil.optimisation.functions import LeastSquares, L2NormSquared, ZeroFunction, ApproximateGradientSumFunction
from cil.framework import VectorData
import numpy as np
from cil.optimisation.utilities import RandomSampling
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @epapoutsellis the unit tests are failing with:

    from cil.optimisation.utilities import RandomSampling
ImportError: cannot import name 'RandomSampling' from 'cil.optimisation.utilities' (/opt/conda/lib/python3.11/site-packages/cil/optimisation/utilities/__init__.py)

Should it be this?

Suggested change
from cil.optimisation.utilities import RandomSampling
from cil.optimisation.utilities import RandomSampler

@gfardell gfardell self-assigned this Feb 10, 2026
@gfardell
Copy link
Member

Thanks (again!) Vaggelis. A quick look I can see some easy memory saving changes. Maybe once unit tests pass I can make the changes directly before we merge?

Is this referenced in the stochastic paper?

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

Labels

community-contribution Community-submitted pull requests from contributors outside the core team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SARAH (StochAstic Recursive grAdient algoritHm)

3 participants