Skip to content

Conversation

@msaca-okse
Copy link

Description

The Huber loss function behaves like the L2 loss close to 0, and like L1 loss for large values. The loss function is differentiable and can thus be used in GD or FISTA. It's an alternative to L2 loss that is more robust to extreme values. The implementation mirrors that of "cil.optimisation.functions.LeastSquares". The Huber loss has a parameter that selects when the cutoff between L2 and L1 loss happens.

Example Usage

G = IndicatorBox(lower=0.0)
huber_delta = 1.0
F = HuberLoss(A,b,huber_delta)
myFISTA = FISTA(f=F, 
                  g=G, 
                  initial=x0)

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

@msaca-okse
Copy link
Author

Fixes #2281

@github-project-automation github-project-automation bot moved this to Todo in UM 2026 Jan 30, 2026
@gfardell gfardell added the community-contribution Community-submitted pull requests from contributors outside the core team. label Jan 30, 2026
@casperdcl casperdcl linked an issue Jan 30, 2026 that may be closed by this pull request
@casperdcl casperdcl moved this from Todo to In Progress in UM 2026 Jan 30, 2026
@casperdcl casperdcl removed this from UM 2026 Jan 30, 2026
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.

Huber loss function

2 participants