Metadata-Version: 2.1
Name: nadir
Version: 0.0.3
Summary: Nadir is a library of bleeding-edge DL optimisers built for speed and functionality in PyTorch for researchers
Author-email: Bhavnick Minhas <bhavnicksm@gmail.com>
Maintainer-email: Bhavnick Minhas <bhavnicksm@gmail.com>
License: Apache 2.0
Project-URL: Homepage, https://github.com/Dawn-Of-Eve/nadir
Project-URL: Bug Tracker, https://github.com/Dawn-Of-Eve/nadir/issues
Keywords: machine learning,optimization,adam-optimizer
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE

![NADIRbanner2](https://user-images.githubusercontent.com/11348086/221370644-fcc05274-eb99-4237-a270-60dafd5ab69d.png)

# Nadir

![PyPI - Downloads](https://img.shields.io/pypi/dm/nadir)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/Dawn-Of-Eve/nadir)
![GitHub Repo stars](https://img.shields.io/github/stars/Dawn-Of-Eve/nadir?style=social)
![Twitter Follow](https://img.shields.io/twitter/follow/dawnofevehq?style=social)

**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.  

# Table of Contents

- [Nadir](#nadir)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Simple Usage](#simple-usage)
- [Supported Optimisers](#supported-optimisers)
- [Acknowledgements](#acknowledgements)
- [Citation](#citation)



# Installation

You can either choose to install from the PyPI index, in the following manner:

```bash
$ pip install nadir
```
or install from source, in the following manner:

```bash
$ pip install git+https://github.com/Dawn-Of-Eve/nadir.git
```
**Note:** Installing from source might lead to a breaking package. It is recommended that you install from PyPI itself.

# Simple Usage

```python
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)

# Call the optimizer step
optimizer.step()
```

# Supported Optimisers

| Optimiser 	| Paper 	                                            |
|:---------:	|:-----:	                                            |
|  **SGD**  	| https://paperswithcode.com/method/sgd                 |
|  **Momentum** | https://paperswithcode.com/method/sgd-with-momentum   |
|  **Adagrad** 	| https://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf |
|  **RMSProp** 	| https://paperswithcode.com/method/rmsprop             |
|  **Adam**     | https://arxiv.org/abs/1412.6980v9                     |
|  **Adamax**   | https://arxiv.org/abs/1412.6980v9                     |
|  **AdamW**    | https://arxiv.org/abs/1711.05101v3                    |
|  **Adadelta** | https://arxiv.org/abs/1212.5701v1                     |
|  **AMSGrad**    | https://arxiv.org/abs/1904.09237v1                    |
|  **RAdam**    | https://arxiv.org/abs/1908.03265v4                    |
|  **Lion**     | https://arxiv.org/abs/2302.06675                      |

# Acknowledgements

We would like to thank all the amazing contributors of this project who spent so much effort making this repositary awesome! :heart:


# Citation

You can use the _Cite this repository_ button provided by Github or use the following bibtex:

```bibtex
@software{MinhasNadir,
    title        = {{Nadir: A Library for Bleeding-Edge Optimizers in PyTorch}},
    author       = {Minhas, Bhavnick and Kalathukunnel, Apsal},
    year         = 2023,
    month        = 3,
    version      = {0.0.2}
}
```
