Skip to content

thisiscam/jax_newton_raphson

Repository files navigation

jax_newton_raphson

A simple Newton-Raphson optimizer in JAX.

Install

pip install git+https://github.com/thisiscam/jax_newton_raphson

Usage

import collections
import jax_newton_raphson as jnr

Params = collections.namedtuple("Params", "x y")


def f(params: Params):
  return (params.x**2 + params.y**2)


print(jnr.minimize(f, initial_guess=Params(-0.1, 0.1)))

About

A simple Newton-Raphson optimizer in JAX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages