spsa

Crates.iospsa
lib.rsspsa
version0.2.1
sourcesrc
created_at2022-04-16 12:12:35.949631
updated_at2022-04-22 20:08:45.19346
descriptionSimultaneous perturbation stochastic approximation
homepage
repositoryhttps://github.com/Quant1um/spsa
max_upload_size
id568947
size40,373
(Quant1um)

documentation

https://docs.rs/spsa

README

spsa

Simultaneous perturbation stochastic approximation implemented in Rust.

  • Fast convergence

  • Black-box, derivative-free optimization

  • Stochastic functions (can be used on noisy functions)

  • Converges well in higher-dimensions

  • Hard constraints by returning NaN

  • Automatic learning rate tuning and adaptive moment estimation

  • Reusable allocation (does not allocate during optimization process)

  • SIMD optimization

Based on this implementation by SimpleArt

API reference (docs.rs)

Usage

Add this to your Cargo.toml:

[dependencies]
spsa = "0.2.1"

License

spsa is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Commit count: 8

cargo fmt