jaxopt.projection.projection_linf_ball
- jaxopt.projection.projection_linf_ball(x, max_value=1.0)[source]
Projection onto the l-infinity ball:
\[\underset{y}{\text{argmin}} ~ ||x - y||_2^2 \quad \textrm{subject to} \quad ||y||_{\infty} \le \text{max_value}\]- Parameters
x (
Any
) – pytree to project.max_value (
float
) – radius of the ball.
- Return type
Any
- Returns
output pytree, with the same structure as
x
.