Skip to main content

Neural Additive Models (NAM) - Pytorch

Project description

nam-pytorch

Unofficial PyTorch implementation of Neural Additive Models (NAM) by Agarwal, et al. [abs, pdf]


Installation

You can access nam-pytorch via pip:

$ pip install nam-pytorch

Usage

import torch 
from nam_pytorch import NAM

nam = NAM(
    num_features=784,
    link_func="sigmoid"
)

images = torch.rand(32, 784)
pred = nam(images) # [32, 1]

Contributing

As always, if there are any issues with / suggestions for the code, feel free to raise an issue or submit a PR.

License

MIT

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

nam_pytorch-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

nam_pytorch-0.0.1-py3-none-any.whl (3.5 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