Skip to main content

Pytorch optimizer based on nonlinear conjugate gradient method

Project description

NCG-optimizer is a set of optimizer about nonliear conjugate gradient in Pytorch.

Install

$ pip install ncg_optimizer

Example

from ncg-optimizer import PRP

# model = Your Model
optimizer = PRP(model.parameters())

Supported Optimizers

Basic Methods

The implementation of all basic methods is based on the book “Nonlinear Conjugate Gradient Method” [1].

Linear Conjugate Gradient

The linear conjugate gradient(LCG) method is only applicable to linear equation solving problems. It converts linear equations into quadratic functions, so that the problem can be solved iteratively without inverting the coefficient matrix.

https://raw.githubusercontent.com/RyunMi/NCG-optimizer/master/docs/LCG.png

Fletcher-Reeves

Changes

0.0.1 (2023-01-01)

  • Initial release.

  • Added support for LCG, FR, .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncg-optimizer-0.0.1b0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

ncg_optimizer-0.0.1b0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page