Skip to main content

Nadir is a library of bleeding-edge DL optimisers built for speed and functionality in PyTorch for researchers

Project description

Nadir

PyPI - Downloads GitHub commit activity GitHub Repo stars Twitter Follow

Nadir (pronounced nay-di-ah) is derived from the arabic word nazir, and means "the lowest point of a space". In optimisation problems, it is equivalent to the point of minimum. If you are a machine learning enthusiast, a data scientist or an AI practitioner, you know how important it is to use the best optimization algorithms to train your models. The purpose of this library is to help optimize machine learning models and enable them to reach the point of nadir in the appropriate context.

PyTorch is a popular machine learning framework that provides a flexible and efficient way of building and training deep neural networks. This library, Nadir, is built on top of PyTorch to provide high-performing general-purpose optimisation algorithms.

At present, the objective is to merely get the ball rolling. We introduce Nadir with two optimization algorithms, namely Stochastic Gradient Descent (SGD) and Adaptive Momentum (AdaM). There are many variations of these two algorithms which can be explored. Synchronous and asynchronous, centered and uncentered or the use of the first or second moment in the adaptive term leads to algorithms with varying performances in different circumstances. In the future, we aim to add more of these to the mix.

Supported Optimisers

Optimiser Paper
SGD
Adam

Installation

Currently, Nadir is not on the PyPi packaging index, so you would need to install it from source. To install Nadir into your python environment, paste the commands in your terminal:

$ pip install nadir

Usage

import nadir as nd

# some model setup here...
model = ...

# set up your Nadir optimiser
config = nd.SGDConfig(lr=learning_rate)
optimizer = nd.SGD(model.parameters(), config)

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

nadir-0.0.1.dev2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

nadir-0.0.1.dev2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file nadir-0.0.1.dev2.tar.gz.

File metadata

  • Download URL: nadir-0.0.1.dev2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for nadir-0.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 057b99a4845b64c9a41e241e017b1a6ea819cc8c019b701ea4b9b45a6da12670
MD5 9f103bfdc9cbd8d12ec7c1f5095a0c70
BLAKE2b-256 9d814939d79e9ad33c75c439d2597e0ac5294aab1784bd85f78af6303512c38c

See more details on using hashes here.

Provenance

File details

Details for the file nadir-0.0.1.dev2-py3-none-any.whl.

File metadata

  • Download URL: nadir-0.0.1.dev2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for nadir-0.0.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 9cef3c22cad57625da8e22d1005dac0bbdc26f356b03dad96c1f7fe1ebb9b638
MD5 08d28c61959c00842cd6a1eab337ce2f
BLAKE2b-256 c4377358a8b726dcbd7acde164967c715d3e41f765f6cbe7949caebe1c3ba3fb

See more details on using hashes here.

Provenance

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